/* Medical Study App - Review Section Design Styles */

/* CSS Variables for Medical Theme */
:root {
    --primary-blue: #0066cc;
    --primary-light: #4d9fff;
    --primary-dark: #003d7a;
    --secondary-green: #00a86b;
    --accent-orange: #ff6b35;
    --neutral-gray: #6c757d;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0, 102, 204, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 102, 204, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 102, 204, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Roboto Slab', serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    color: var(--neutral-gray);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo i {
    font-size: 2rem;
    color: var(--white);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0;
    animation: slideInUp 0.8s ease-out 0.2s forwards;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    opacity: 0;
    animation: slideInUp 0.8s ease-out 0.4s forwards;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-badge i {
    font-size: 1.25rem;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-green));
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--neutral-gray);
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.overview-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.overview-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid var(--primary-blue);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-header i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.feature-header h3 {
    color: var(--primary-blue);
    margin-bottom: 0;
}

.feature-content ul {
    list-style: none;
    padding-left: 0;
}

.feature-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--neutral-gray);
}

.feature-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-green);
    font-weight: bold;
}

/* Card Demo Section */
.card-demo {
    background: var(--light-gray);
}

.demo-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.card-section {
    border-bottom: 1px solid #e9ecef;
    transition: var(--transition);
}

.card-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.section-header.clickable:hover {
    background: #e9ecef;
}

.section-header i {
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.section-header h3 {
    flex: 1;
    margin-bottom: 0;
    color: var(--dark-gray);
}

.status-badge {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.toggle-icon {
    transition: var(--transition);
}

.card-section.expanded .toggle-icon {
    transform: rotate(90deg);
}

.section-content {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-section.active .section-content,
.card-section.expanded .section-content {
    max-height: 500px;
    padding: 1.5rem 2rem;
}

.question-text {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-blue);
}

.question-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.question-meta span {
    background: var(--light-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    color: var(--neutral-gray);
    font-weight: 500;
    transition: var(--transition);
}

/* Difficulty Level Color Coding */
.difficulty-beginner {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb;
}

.difficulty-intermediate {
    background: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeaa7;
}

.difficulty-advanced {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb;
}

.difficulty-expert {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
    border: 1px solid #b8daff;
}

/* Medical Category Color Coding */
.category-cardiology {
    background: #ffe6e6 !important;
    color: #8b0000 !important;
    border: 1px solid #ffcccc;
}

.category-neurology {
    background: #e6f3ff !important;
    color: #003d7a !important;
    border: 1px solid #cce7ff;
}

.category-pulmonology {
    background: #f0f8ff !important;
    color: #2c5aa0 !important;
    border: 1px solid #ddeeff;
}

.category-gastroenterology {
    background: #f5f0ff !important;
    color: #4a0e4e !important;
    border: 1px solid #e6d7ff;
}

.category-endocrinology {
    background: #fff5e6 !important;
    color: #8b4513 !important;
    border: 1px solid #ffe0b3;
}

/* Color Examples Section */
.color-examples {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.color-examples p {
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 0.875rem;
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.example-tags span {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.example-tags span:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.answer-text {
    background: #e8f5e8;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-green);
}

.study-materials h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.study-materials ul {
    list-style: none;
    padding-left: 0;
}

.study-materials li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.study-materials li:last-child {
    border-bottom: none;
}

.audio-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.audio-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.audio-btn.primary {
    background: var(--primary-blue);
    color: var(--white);
}

.audio-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.audio-btn.secondary {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid #dee2e6;
}

.audio-btn.secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.duration {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.audio-info {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-orange);
}

.audio-info p {
    margin-bottom: 0;
    color: #856404;
}

.card-controls {
    text-align: center;
    margin-top: 2rem;
    color: var(--neutral-gray);
    font-style: italic;
}

/* User Flow */
.flow-diagram {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.flow-step {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin: 1rem 0;
    transition: var(--transition);
}

.flow-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.flow-arrow {
    margin: 1rem 0;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.flow-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.branch .flow-step {
    margin: 0;
}

.branch .step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
}

.branch h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.branch p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.flow-benefits {
    margin-top: 3rem;
}

.flow-benefits h3 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.benefit-item i {
    font-size: 2rem;
    color: var(--secondary-green);
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Implementation Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-green);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.advantage-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.advantage-header i {
    font-size: 1.5rem;
    color: var(--secondary-green);
}

.advantage-header h3 {
    color: var(--primary-blue);
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-brand i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.footer p {
    color: #adb5bd;
    margin-bottom: 0;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.25rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 4px;
        transition: var(--transition);
    }
    
    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Mobile Navigation Dropdown */
    .nav.mobile-nav-open {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-medium);
        z-index: 1000;
    }
    
    .nav.mobile-nav-open a {
        padding: 0.75rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: var(--transition);
    }
    
    .nav.mobile-nav-open a:last-child {
        border-bottom: none;
    }
    
    .nav.mobile-nav-open a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .overview-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .demo-card {
        margin: 0 -5px; /* Allow card to use more screen space */
    }
    
    .demo-card .section-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .demo-card .section-header h3 {
        font-size: 1.1rem;
    }
    
    .demo-card .section-content {
        padding: 0 1rem;
        font-size: 0.875rem;
    }
    
    .demo-card .card-section.active .section-content,
    .demo-card .card-section.expanded .section-content {
        padding: 0.75rem 1rem;
    }
    
    /* Mobile-specific improvements for status badges */
    .status-badge {
        font-size: 0.75rem !important;
        padding: 0.2rem 0.6rem !important;
    }
    
    /* Better mobile layout for color examples */
    .color-examples {
        margin-top: 1rem;
        padding: 0.75rem;
    }
    
    .color-examples p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .example-tags {
        gap: 0.4rem;
    }
    
    .example-tags span {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        white-space: nowrap;
    }
    
    .audio-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .audio-btn {
        font-size: 0.8rem !important;
        padding: 0.6rem 1rem !important;
        justify-content: center;
    }
    
    .audio-btn i {
        font-size: 0.9rem;
    }
    
    .duration {
        font-size: 0.7rem !important;
    }
    
    .flow-branches {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .overview-card,
    .feature-item,
    .advantage-card {
        padding: 1.5rem;
    }
    
    /* Extra small mobile adjustments for demo card */
    .demo-card {
        margin: 0 -10px;
    }
    
    .demo-card .section-header {
        padding: 0.6rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .demo-card .section-header h3 {
        font-size: 1rem;
        flex: 1;
        min-width: 120px;
    }
    
    .demo-card .section-content {
        padding: 0 0.75rem;
        font-size: 0.8rem;
    }
    
    .demo-card .card-section.active .section-content,
    .demo-card .card-section.expanded .section-content {
        padding: 0.6rem 0.75rem;
    }
    
    /* Very compact color examples for small screens */
    .example-tags {
        gap: 0.3rem;
    }
    
    .example-tags span {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
    
    /* Smaller question and answer text */
    .question-text,
    .answer-text {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .question-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .question-meta span {
        font-size: 0.75rem;
    }
}