/**
 * TeacherAI Features Page Styles
 * Location: /wp-content/plugins/teacherai-simple/assets/css/features-page.css
 * 
 * @package TeacherAI
 * @version 1.0.0
 * @author Claude 202 - TEAM TEACHAI
 * @date December 27, 2025
 * 
 * Purpose: Accordion functionality and styling for enhanced Features page
 * Adds "Learn More" expand/collapse to feature sections
 * 
 * CLAUDE FIRST: This file owns all Features page specific styles.
 * Global styles remain in platform-core.css or home-page.css
 */

/* =============================================
   ACCORDION COMPONENT
   ============================================= */

/* Learn More Button */
.feature-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #8B5CF6;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-learn-more:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8B5CF6;
}

/* Arrow icon rotation */
.feature-learn-more .arrow-icon {
    transition: transform 0.3s ease;
}

.feature-learn-more.expanded .arrow-icon {
    transform: rotate(180deg);
}

/* Expanded content container */
.feature-expanded-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.feature-expanded-content.show {
    max-height: 2000px; /* Large enough for any content */
    opacity: 1;
    margin-top: 24px;
}

/* Expanded content inner styling */
.feature-expanded-inner {
    padding: 24px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    border-left: 4px solid #8B5CF6;
}

.feature-detail-alt .feature-expanded-inner,
.feature-detail-alt .feature-expanded-inner * {
    color: #4B5563 !important;
}

/* Problem/Solution structure within expanded */
.expanded-problem,
.expanded-solution,
.expanded-win {
    margin-bottom: 20px;
}

.expanded-problem:last-child,
.expanded-solution:last-child,
.expanded-win:last-child {
    margin-bottom: 0;
}

.expanded-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.expanded-problem .expanded-label {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.expanded-solution .expanded-label {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.expanded-win .expanded-label {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

/* Alt section label colors */
.feature-detail-alt .expanded-problem .expanded-label {
    background: rgba(239, 68, 68, 0.2);
}

.feature-detail-alt .expanded-solution .expanded-label {
    background: rgba(34, 197, 94, 0.2);
}

.feature-detail-alt .expanded-win .expanded-label {
    background: rgba(139, 92, 246, 0.2);
}

.expanded-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4B5563;
}

.feature-detail-alt .expanded-text {
    color: #4B5563 !important;
}

/* Teacher quote styling */
.teacher-quote {
    font-style: italic;
    padding: 16px 20px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 8px;
    margin-top: 12px;
    position: relative;
}

.teacher-quote::before {
    content: '"';
    font-size: 48px;
    color: #8B5CF6;
    opacity: 0.3;
    position: absolute;
    top: -5px;
    left: 10px;
    font-family: Georgia, serif;
}

.feature-detail-alt .teacher-quote {
    color: #4B5563 !important;
}

/* =============================================
   NEW SECTIONS STYLING
   ============================================= */

/* Teaching Tools Section - Special styling for tool cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.tool-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.tool-card-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.tool-card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: #1F2937;
    margin-bottom: 12px;
}

.tool-card-description {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tool-card-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #22C55E;
    background: rgba(34, 197, 94, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Coming Soon tools */
.tools-coming-soon {
    margin-top: 32px;
    padding: 24px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(139, 92, 246, 0.3);
}

.tools-coming-soon h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #8B5CF6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.coming-tool {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #6B7280;
    font-size: 15px;
}

.coming-tool-icon {
    font-size: 20px;
}

/* =============================================
   END THE PIRACY SECTION - Emotional Close
   ============================================= */

.feature-revolution {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    position: relative;
    overflow: hidden;
}

.feature-detail.feature-revolution {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%) !important;
    position: relative;
    overflow: hidden;
}

.feature-revolution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.revolution-content {
    position: relative;
    z-index: 1;
}

.revolution-stats {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    margin: 40px 0;
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.stat-box {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.stat-value {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: #fff;
}

.stat-value.highlight {
    color: #A78BFA;
}

.stat-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.stat-arrow {
    font-size: 32px;
    color: #22C55E;
}

.revolution-message {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.revolution-message p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.revolution-message strong {
    color: #A78BFA;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */

@media (max-width: 768px) {
    .feature-learn-more {
        width: 100%;
        justify-content: center;
    }
    
    .feature-expanded-inner {
        padding: 16px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .revolution-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-arrow {
        transform: rotate(90deg);
    }
    
    .stat-value {
        font-size: 24px;
    }
}

/* =============================================
   ANIMATION UTILITIES
   ============================================= */

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

.feature-expanded-content.show .feature-expanded-inner {
    animation: fadeInUp 0.4s ease forwards;
}
