/**
 * ファイル名: homepage-builder-pro/css/preview-style.css
 * ホームページビルダープロ - プレビュー専用スタイル（重複削除版）
 * homepage-builder-style.cssとの差分のみを定義
 */

/* ========================================
   プレビュー専用の差分スタイル
======================================== */

/* 新しいヘッダー（SEO Blog Generator風）- preview専用 */
.hbp-header-modern {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 16px 0;
}

.hbp-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hbp-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hbp-header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.hbp-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hbp-header-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.hbp-header-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.hbp-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hbp-header-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hbp-header-btn-save {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.hbp-header-btn-save:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.hbp-header-btn-load {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.hbp-header-btn-load:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 既存のヘッダーを非表示（preview専用） */
.hbp-header {
    display: none;
}

/* ========================================
   ステップ1: 一括入力エリア（SEO Blog Generator風）- preview専用の差分
======================================== */
.hbp-step-1 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    margin: 0;
    border-radius: 0;
}

.hbp-step-1 h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
    letter-spacing: -0.025em;
}

.hbp-step-1 p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.hbp-bulk-input {
    max-width: 900px;
    margin: 0 auto;
}

.hbp-bulk-textarea {
    width: 100%;
    height: 320px;
    padding: 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    resize: vertical;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hbp-bulk-textarea:focus {
    outline: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.hbp-analyze-btn {
    margin-top: 32px;
    padding: 16px 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    transform: translateY(0);
}

.hbp-analyze-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.hbp-analyze-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================================
   レスポンシブ対応（preview専用の追加）
======================================== */
@media (max-width: 768px) {
    .hbp-header-container {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }

    .hbp-header-title {
        font-size: 28px;
    }

    .hbp-header-subtitle {
        font-size: 14px;
    }

    .hbp-header-right {
        width: 100%;
        justify-content: center;
    }

    .hbp-header-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hbp-hero-section,
    .hbp-message-section,
    .hbp-questions-section,
    .hbp-service-section,
    .hbp-cases-section,
    .hbp-information-section,
    .hbp-profile-section,
    .hbp-contact-section,
    .wp-block-group {
        padding: 50px 15px;
    }
    
    .hbp-hero-section h1,
    .wp-block-cover h1 {
        font-size: 1.6rem;
    }
    
    .hbp-message-section h2,
    .hbp-questions-section h2,
    .hbp-cases-section h2,
    .hbp-information-section h2,
    .hbp-profile-section h2,
    .hbp-contact-section h2,
    .wp-block-group h2 {
        font-size: 1.8rem;
    }
    
    .hbp-service-item,
    .hbp-case-item,
    .hbp-info-item,
    .hbp-profile-item,
    .wp-block-column {
        padding: 15px;
    }
    
    .hbp-section-preview::before {
        top: 5px;
        left: 5px;
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* ========================================
   アニメーション（preview専用の追加）
======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* アニメーションクラス */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* ========================================
   ダークモード対応（preview専用の追加）
======================================== */

@media (prefers-color-scheme: dark) {
    .hbp-preview-content {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .hbp-message-section,
    .hbp-profile-section,
    .wp-block-group.message-section,
    .wp-block-group.profile-section {
        background: #2d2d2d;
    }
    
    .hbp-service-section,
    .hbp-information-section,
    .wp-block-group.service-section,
    .wp-block-group.information-section {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .hbp-case-item,
    .hbp-info-item,
    .hbp-profile-item,
    .wp-block-column {
        background: #333;
        color: #e0e0e0;
    }
    
    .hbp-profile-item strong,
    .hbp-case-content h3,
    .hbp-info-content h3,
    .profile-section .profile-item strong,
    .cases-section h3,
    .information-section h3 {
        color: #a8b8d8;
    }
    
    .hbp-message-section h2,
    .hbp-cases-section h2,
    .hbp-information-section h2,
    .hbp-profile-section h2,
    .hbp-contact-section h2,
    .wp-block-group h2 {
        color: #a8b8d8;
    }
}

/* CSS読み込み完了マーカー */
html {
    --preview-css-loaded: true;
    --wp-output-css-loaded: true;
}