/**
 * CONSISTENCY POLISH
 * Genspark Training Platform v3.0
 * Ensures all sections have beautiful, consistent styling with gradients and visual richness
 */

/* ===========================
   ENHANCED TIMELINE ITEMS
   =========================== */

.timeline-item {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 1) 100%);
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--apple-blue) 0%, var(--apple-purple) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.timeline-item:hover::before {
    transform: scaleY(1);
}

.timeline-item:hover {
    transform: translateX(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.timeline-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--apple-blue) 0%, var(--apple-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.35);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 28px rgba(0, 122, 255, 0.45);
}

.timeline-content h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.02em;
}

.timeline-content p {
    color: var(--apple-gray-700);
    margin-bottom: 16px;
    font-size: 1.0625rem;
    line-height: 1.6;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.1) 100%);
    border-radius: 24px;
    font-size: 0.9375rem;
    color: var(--apple-blue);
    font-weight: 600;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.time-badge i {
    font-size: 1rem;
}

/* ===========================
   SECTION HEADERS ENHANCEMENT
   =========================== */

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--apple-gray-600);
    margin-bottom: 48px;
    line-height: 1.6;
    max-width: 800px;
}

/* ===========================
   PERSONALIZED INTRO ENHANCEMENT
   =========================== */

.personalized-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--apple-gray-700);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 86, 214, 0.05) 100%);
    padding: 32px;
    border-radius: 20px;
    border-left: 4px solid var(--apple-blue);
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.personalized-intro:empty {
    display: none;
}

.personalized-intro strong {
    color: var(--apple-blue);
    font-weight: 700;
}

/* ===========================
   SUGGESTED TASKS ENHANCEMENT
   =========================== */

.suggested-tasks {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 1) 100%) !important;
    padding: 40px !important;
    border-radius: 24px !important;
    margin: 32px 0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.suggested-tasks h3 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #000000;
    letter-spacing: -0.02em;
}

.suggested-tasks h3 i {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--apple-yellow) !important;
    filter: drop-shadow(0 2px 4px rgba(255, 204, 0, 0.3));
}

/* ===========================
   ROI PREVIEW ENHANCEMENT
   =========================== */

.roi-preview {
    background: linear-gradient(135deg, var(--apple-blue) 0%, var(--apple-purple) 100%);
    padding: 56px 48px;
    border-radius: 28px;
    text-align: center;
    color: white;
    margin-top: 48px;
    box-shadow: 0 12px 48px rgba(0, 122, 255, 0.35);
    position: relative;
    overflow: hidden;
}

.roi-preview::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.roi-preview h3 {
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
    color: white;
}

.roi-preview h3 span {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-weight: 800;
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.roi-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.roi-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.roi-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.roi-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

/* ===========================
   HERO SECTION ENHANCEMENT
   =========================== */

.hero-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero-section .section-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-section .section-subtitle {
    font-size: 1.375rem;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* ===========================
   PROMPT TIPS ENHANCEMENT
   =========================== */

.prompt-tips {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.08) 0%, rgba(255, 149, 0, 0.08) 100%);
    border-left: 4px solid var(--apple-yellow);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
}

.prompt-tips h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt-tips h5 i {
    color: var(--apple-yellow);
    font-size: 1.25rem;
}

.prompt-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prompt-tips li {
    padding-left: 28px;
    margin-bottom: 12px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--apple-gray-700);
}

.prompt-tips li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--apple-yellow);
    font-weight: 700;
    font-size: 1.125rem;
}

/* ===========================
   MENTION SIMULATOR ENHANCEMENT
   =========================== */

.mention-simulator {
    margin: 20px 0;
}

.simulator-screen {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 1) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.simulator-header {
    background: linear-gradient(135deg, var(--apple-blue) 0%, var(--apple-purple) 100%);
    color: white;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 1.0625rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.simulator-header i {
    font-size: 1.25rem;
}

.simulator-content {
    padding: 24px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.agent-bubble {
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    max-width: 85%;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.agent-bubble.system {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.1) 100%);
    border-left: 3px solid var(--apple-blue);
    margin-left: 0;
    margin-right: auto;
}

.agent-bubble.user {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.1) 0%, rgba(48, 209, 88, 0.1) 100%);
    border-right: 3px solid var(--apple-green);
    margin-left: auto;
    margin-right: 0;
}

/* ===========================
   TRYOUT FEEDBACK ENHANCEMENT
   =========================== */

.tryout-feedback {
    margin-top: 20px;
    padding: 20px 24px;
    border-radius: 16px;
    display: none;
    animation: slideInUp 0.4s ease;
}

.tryout-feedback.show {
    display: block;
}

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

.tryout-feedback.success {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.12) 0%, rgba(48, 209, 88, 0.12) 100%);
    border-left: 4px solid var(--apple-green);
}

.tryout-feedback.info {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.12) 0%, rgba(88, 86, 214, 0.12) 100%);
    border-left: 4px solid var(--apple-blue);
}

/* ===========================
   KNOWLEDGE CARDS ENHANCEMENT
   =========================== */

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.knowledge-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 1) 100%);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.knowledge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.knowledge-card > i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--apple-blue) 0%, var(--apple-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 20px;
}

.knowledge-card h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.knowledge-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.knowledge-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--apple-gray-700);
    border-bottom: 1px solid var(--apple-gray-100);
}

.knowledge-list li:last-child {
    border-bottom: none;
}

.knowledge-check {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--apple-blue);
}

/* ===========================
   ACHIEVEMENT BADGES ENHANCEMENT
   =========================== */

.achievement-badges {
    margin: 48px 0;
}

.achievement-badges h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.02em;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.badge-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 1) 100%);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
    cursor: pointer;
}

.badge-item.unlocked {
    opacity: 1;
    border-color: var(--apple-blue);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.2);
}

.badge-item.unlocked:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.3);
}

.badge-item i {
    font-size: 2.5rem;
    color: var(--apple-gray-400);
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.badge-item.unlocked i {
    background: linear-gradient(135deg, var(--apple-blue) 0%, var(--apple-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.badge-item span {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--apple-gray-600);
    display: block;
}

.badge-item.unlocked span {
    color: var(--apple-gray-900);
}

/* ===========================
   SKILL CHART ENHANCEMENT
   =========================== */

.skill-chart-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 1) 100%);
    border-radius: 24px;
    padding: 40px;
    margin: 48px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.skill-chart-container h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.02em;
}

.skill-chart-container canvas {
    max-width: 100%;
}

/* ===========================
   FLASHCARD SECTION TITLES
   =========================== */

#flashcards h2.section-title,
#resources h2.section-title,
#faq h2.section-title {
    text-align: center;
    margin-bottom: 24px;
}

#flashcards .section-subtitle,
#resources .section-subtitle,
#faq .section-subtitle {
    text-align: center;
    margin: 0 auto 48px;
}

/* ===========================
   RESPONSIVE CONSISTENCY
   =========================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1.0625rem;
    }
    
    .hero-section .section-title {
        font-size: 2.5rem;
    }
    
    .timeline-item {
        padding: 24px 20px;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .roi-preview {
        padding: 40px 24px;
    }
    
    .roi-preview h3 {
        font-size: 1.625rem;
    }
    
    .roi-number {
        font-size: 2.5rem;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .badges-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}
