/* Panduan CSS - Optimized for 35-50 age group with minimal literacy */

/* CSS Variables untuk konsistensi dengan homepage */
:root {
    --welcome-title-size: 1.3rem;
    --welcome-subtitle-size: 0.9rem;
    --welcome-stat-size: 0.8rem;
    --welcome-spacing-sm: 0.4rem;
    --welcome-spacing-md: 0.8rem;
    --card-padding: 1rem;
    --section-spacing: 1.5rem;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg,var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 0; /* Kurangi padding untuk mobile */
    margin-bottom: 1.5rem; /* Kurangi margin */
    border-radius: 8px; /* Kurangi border radius */
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Kurangi gap */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.8rem; /* Kurangi padding */
}

.welcome-icon {
    font-size: 3rem; /* Kurangi ukuran ikon */
    opacity: 0.9;
    order: 2;
    flex-shrink: 0;
}

.welcome-text {
    order: 1; /* Pastikan teks di kiri */
    flex: 1; /* Biarkan teks mengambil ruang yang tersisa */
}

.welcome-text h1 {
    font-size: var(--welcome-title-size); /* Menggunakan CSS variable */
    margin-bottom: var(--welcome-spacing-sm);
    font-weight: 600;
    text-align: left;
    color: white;
}

.welcome-subtitle {
    font-size: var(--welcome-subtitle-size); /* Menggunakan CSS variable */
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-align: left;
    max-width: 600px;
    line-height: 1.5;
}

.welcome-stats {
    display: flex;
    gap: 1.5rem; /* Kurangi gap */
    flex-wrap: wrap;
    justify-content: flex-start;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--welcome-spacing-sm);
    font-size: var(--welcome-stat-size);
    opacity: 0.9;
}

.stat-item i {
    font-size: 1rem; /* Kurangi ukuran ikon */
}

/* Quick Start Section */
.quick-start-section {
    margin-bottom: var(--section-spacing);
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem; /* Kurangi margin */
}

.section-header h2 {
    font-size: 1.6rem; /* Kurangi ukuran font */
    color: #2E7D32;
    margin-bottom: 0.4rem; /* Kurangi margin */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem; /* Kurangi gap */
}

.section-header p {
    font-size: 1rem; /* Kurangi ukuran font */
    color: #666;
}

.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Kurangi min-width */
    gap: 1.2rem; /* Kurangi gap */
    margin-top: 1.5rem; /* Kurangi margin */
}

.quick-start-card {
    background: white;
    border-radius: 8px; /* Kurangi border radius */
    padding: 1.5rem; /* Kurangi padding */
    box-shadow: 0 3px 10px rgba(0,0,0,0.08); /* Kurangi shadow */
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.quick-start-card:hover {
    transform: translateY(-2px); /* Kurangi hover effect */
    box-shadow: 0 6px 20px rgba(0,0,0,0.12); /* Kurangi shadow */
    border-color: #4CAF50;
}

.card-number {
    position: absolute;
    top: -12px; /* Kurangi posisi */
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    width: 32px; /* Kurangi ukuran */
    height: 32px; /* Kurangi ukuran */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem; /* Kurangi font */
    font-weight: bold;
}

.card-icon {
    font-size: 2.5rem; /* Kurangi ukuran ikon */
    color: #4CAF50;
    margin: 0.8rem 0; /* Kurangi margin */
}

.quick-start-card h3 {
    font-size: 1.2rem; /* Kurangi font */
    margin-bottom: 0.4rem; /* Kurangi margin */
    color: #333;
}

.quick-start-card p {
    color: #666;
    margin-bottom: 1.2rem; /* Kurangi margin */
    font-size: 0.9rem; /* Kurangi font */
    line-height: 1.4; /* Kurangi line height */
}

.btn-start {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem; /* Kurangi padding */
    border-radius: 6px; /* Kurangi border radius */
    font-size: 0.9rem; /* Kurangi font */
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Kurangi gap */
    margin: 0 auto;
    min-height: 40px; /* Pastikan touch-friendly */
}

.btn-start:hover {
    background: #45a049;
}

/* Guide Categories */
.guide-categories {
    margin-bottom: var(--section-spacing);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Kurangi min-width */
    gap: 1.5rem; /* Kurangi gap */
    margin-top: 1.5rem; /* Kurangi margin */
}

.category-card {
    background: white;
    border-radius: 8px; /* Kurangi border radius */
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08); /* Kurangi shadow */
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-1px); /* Kurangi hover effect */
}

.category-header {
    padding: 1.2rem; /* Kurangi padding */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-header .category-icon {
    font-size: 1.6rem; /* Kurangi ukuran ikon */
    color: #4CAF50;
}

.category-header h3 {
    font-size: 1.1rem; /* Kurangi font */
    margin: 0;
    color: #333;
}

.difficulty {
    padding: 0.25rem 0.6rem; /* Kurangi padding */
    border-radius: 16px; /* Kurangi border radius */
    font-size: 0.75rem; /* Kurangi font */
    font-weight: 500;
}

.difficulty.easy {
    background: #d4edda;
    color: #155724;
}

.difficulty.medium {
    background: #fff3cd;
    color: #856404;
}

.category-content {
    padding: 1.2rem; /* Kurangi padding */
}

.category-content p {
    color: #666;
    margin-bottom: 1.2rem; /* Kurangi margin */
    font-size: 0.9rem; /* Kurangi font */
    line-height: 1.4; /* Kurangi line height */
}

.guide-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem; /* Kurangi gap */
}

.guide-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem; /* Kurangi padding */
    background: #f8f9fa;
    border-radius: 6px; /* Kurangi border radius */
    cursor: pointer;
    transition: background 0.3s ease;
    min-height: 44px; /* Pastikan touch-friendly */
}

.guide-item:hover {
    background: #e9ecef;
}

.guide-item i {
    color: #4CAF50;
    margin-right: 0.6rem; /* Kurangi margin */
    font-size: 1rem; /* Kurangi font */
}

.guide-item span {
    flex: 1;
    font-size: 0.9rem; /* Kurangi font */
    color: #333;
}

.guide-duration {
    background: #4CAF50;
    color: white;
    padding: 0.15rem 0.5rem; /* Kurangi padding */
    border-radius: 10px; /* Kurangi border radius */
    font-size: 0.75rem; /* Kurangi font */
}

/* Help Section */
.help-section {
    margin-bottom: var(--section-spacing);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Kurangi min-width */
    gap: 1.2rem; /* Kurangi gap */
    margin-top: 1.5rem; /* Kurangi margin */
}

.help-card {
    background: white;
    border-radius: 8px; /* Kurangi border radius */
    padding: 1.5rem; /* Kurangi padding */
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08); /* Kurangi shadow */
    transition: transform 0.3s ease;
}

.help-card:hover {
    transform: translateY(-1px); /* Kurangi hover effect */
}

.help-icon {
    font-size: 2.5rem; /* Kurangi ukuran ikon */
    color: #4CAF50;
    margin-bottom: 0.8rem; /* Kurangi margin */
}

.help-card h3 {
    font-size: 1.1rem; /* Kurangi font */
    margin-bottom: 0.4rem; /* Kurangi margin */
    color: #333;
}

.help-card p {
    color: #666;
    margin-bottom: 1.2rem; /* Kurangi margin */
    font-size: 0.9rem; /* Kurangi font */
}

.help-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem; /* Kurangi gap */
    padding: 0.7rem 1.2rem; /* Kurangi padding */
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 6px; /* Kurangi border radius */
    font-size: 0.9rem; /* Kurangi font */
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 40px; /* Pastikan touch-friendly */
}

.help-btn:hover {
    background: #45a049;
}

.help-btn.whatsapp {
    background: #25D366;
}

.help-btn.whatsapp:hover {
    background: #20b358;
}

/* FAQ Section */
.faq-section {
    margin-bottom: var(--section-spacing);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Kurangi gap */
    margin-top: 1.5rem; /* Kurangi margin */
}

.faq-item {
    background: white;
    border-radius: 6px; /* Kurangi border radius */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* Kurangi shadow */
    overflow: hidden;
}

.faq-question {
    padding: 1.2rem; /* Kurangi padding */
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
    min-height: 44px; /* Pastikan touch-friendly */
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h3 {
    font-size: 1rem; /* Kurangi font */
    margin: 0;
    color: #333;
    line-height: 1.3; /* Kurangi line height */
}

.faq-question i {
    color: #4CAF50;
    transition: transform 0.3s ease;
    font-size: 0.9rem; /* Kurangi font ikon */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.2rem; /* Kurangi padding */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.2rem; /* Kurangi padding */
    max-height: 180px; /* Kurangi max height */
}

.faq-answer p {
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem; /* Kurangi font */
}

/* Guide Modal */
.guide-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 8px; /* Kurangi border radius */
    box-shadow: 0 15px 30px rgba(0,0,0,0.25); /* Kurangi shadow */
    z-index: 1001;
    width: 92%; /* Kurangi width untuk mobile */
    max-width: 700px; /* Kurangi max-width */
    max-height: 85vh; /* Kurangi max-height */
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.guide-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-header {
    padding: 1.2rem; /* Kurangi padding */
    background: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem; /* Kurangi font */
    line-height: 1.3;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem; /* Kurangi font */
    cursor: pointer;
    padding: 0.4rem; /* Kurangi padding */
    border-radius: 4px;
    transition: background 0.3s ease;
    min-width: 40px; /* Pastikan touch-friendly */
    min-height: 40px;
}

.close-modal:hover {
    background: rgba(255,255,255,0.1);
}

.modal-body {
    padding: 1.5rem; /* Kurangi padding */
    max-height: 55vh; /* Kurangi max-height */
    overflow-y: auto;
}

.modal-footer {
    padding: 1.2rem; /* Kurangi padding */
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem; /* Tambah gap */
}

.modal-footer .btn {
    padding: 0.7rem 1.2rem; /* Kurangi padding */
    border: none;
    border-radius: 5px; /* Kurangi border radius */
    cursor: pointer;
    font-size: 0.9rem; /* Kurangi font */
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Kurangi gap */
    min-height: 40px; /* Pastikan touch-friendly */
}

.modal-footer .btn-primary {
    background: #4CAF50;
    color: white;
}

.modal-footer .btn-primary:hover {
    background: #45a049;
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
}

/* Guide Content Styles - Mobile Optimized */
.guide-step {
    margin-bottom: 1.5rem; /* Kurangi margin */
}

.guide-step h4 {
    color: #4CAF50;
    font-size: 1.1rem; /* Kurangi font */
    margin-bottom: 0.8rem; /* Kurangi margin */
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Kurangi gap */
    line-height: 1.3;
}

.guide-step p {
    font-size: 0.9rem; /* Kurangi font */
    line-height: 1.5; /* Kurangi line height */
    color: #333;
    margin-bottom: 0.8rem; /* Kurangi margin */
}

.guide-step img {
    width: 100%;
    max-width: 350px; /* Kurangi max-width */
    border-radius: 6px; /* Kurangi border radius */
    box-shadow: 0 3px 10px rgba(0,0,0,0.08); /* Kurangi shadow */
    margin: 0.8rem 0; /* Kurangi margin */
}

.guide-tip {
    background: #e8f5e8;
    border-left: 3px solid #4CAF50; /* Kurangi border */
    padding: 0.8rem; /* Kurangi padding */
    border-radius: 4px;
    margin: 0.8rem 0; /* Kurangi margin */
    font-size: 0.9rem; /* Kurangi font */
}

.guide-tip strong {
    color: #2E7D32;
}

.guide-warning {
    background: #fff3cd;
    border-left: 3px solid #ffc107; /* Kurangi border */
    padding: 0.8rem; /* Kurangi padding */
    border-radius: 4px;
    margin: 0.8rem 0; /* Kurangi margin */
    font-size: 0.9rem; /* Kurangi font */
}

.guide-warning strong {
    color: #856404;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    :root {
        --welcome-title-size: 1.2rem;
        --welcome-subtitle-size: 0.85rem;
        --card-padding: 0.8rem;
        --section-spacing: 1.2rem;
    }
    
    .welcome-content {
        gap: 1.2rem;
    }
    
    .welcome-icon {
        font-size: 3rem;
    }
    
    .welcome-stats {
        gap: 1.2rem;
    }
    
    .quick-start-grid,
    .categories-grid,
    .help-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --welcome-title-size: 1.1rem;
        --welcome-subtitle-size: 0.8rem;
        --card-padding: 0.8rem;
        --section-spacing: 1rem;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 0 0.8rem;
    }
    
    .welcome-icon {
        order: 1;
        font-size: 2.5rem; /* Kurangi ukuran ikon */
    }
    
    .welcome-text {
        order: 2;
    }
    
    .welcome-stats {
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        font-size: 0.75rem; /* Kurangi font */
    }
    
    .quick-start-grid,
    .categories-grid,
    .help-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .quick-start-card,
    .category-card,
    .help-card {
        padding: 1rem; /* Kurangi padding */
    }
    
    .section-header h2 {
        font-size: 1.1rem; /* Konsisten dengan komponen lain */
        gap: 0.5rem;
    }
    
    .section-header h2 i {
        font-size: 1.1rem;
    }
    
    .section-header p {
        font-size: 0.85rem; /* Kurangi font */
    }
    
    /* Help Section Mobile Optimizations */
    .help-section {
        padding: var(--card-padding);
    }
    
    .help-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom untuk mobile */
        gap: 0.8rem;
    }
    
    .help-card {
        padding: var(--card-padding);
    }
    
    .help-icon {
        font-size: 48px; /* Touch-friendly size */
        margin-bottom: 0.6rem;
    }
    
    .help-card h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .help-card p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .help-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    .guide-modal {
        width: 95%;
        margin: 0.5rem;
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: 50vh;
    }
    
    .modal-footer {
        padding: 0.8rem;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
}

/* Small Mobile Responsive (iPhone SE, etc) */
@media (max-width: 480px) {
    :root {
        --welcome-title-size: 1rem;
        --welcome-subtitle-size: 0.75rem;
        --card-padding: 0.6rem;
        --section-spacing: 0.8rem;
    }
    
    .welcome-section {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .welcome-content {
        padding: 0 0.6rem;
        gap: 0.6rem;
    }
    
    .welcome-icon {
        font-size: 2rem;
    }
    
    .welcome-stats {
        gap: 0.6rem;
    }
    
    .stat-item {
        font-size: 0.7rem;
        gap: 0.3rem;
    }
    
    .stat-item i {
        font-size: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 1rem; /* Konsisten dengan komponen lain */
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .section-header h2 i {
        font-size: 1rem;
    }
    
    .section-header p {
        font-size: 0.8rem;
    }
    
    .quick-start-card,
    .category-card,
    .help-card {
        padding: 0.8rem;
    }
    
    .quick-start-card h3,
    .category-header h3,
    .help-card h3 {
        font-size: 0.9rem; /* Konsisten dengan komponen lain */
    }
    
    .quick-start-card p,
    .category-content p,
    .help-card p {
        font-size: 0.8rem;
    }
    
    .card-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        top: -10px;
    }
    
    .card-icon {
        font-size: 2rem;
        margin: 0.6rem 0;
    }
    
    /* Help Section Very Small Mobile */
    .help-section {
        padding: var(--card-padding);
    }
    
    .help-grid {
        grid-template-columns: 1fr; /* Single column untuk very small mobile */
        gap: 0.6rem;
    }
    
    .help-card {
        padding: var(--card-padding);
    }
    
    .help-icon {
        font-size: 40px; /* Smaller icon untuk very small screens */
        margin-bottom: 0.5rem;
    }
    
    .help-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .help-card p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .btn-start,
    .help-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        width: 100%; /* Full width untuk very small mobile */
        min-height: 44px;
        justify-content: center;
    }
    
    .guide-item {
        padding: 0.6rem;
        min-height: 40px;
    }
    
    .guide-item span {
        font-size: 0.8rem;
    }
    
    .guide-duration {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }
    
    .faq-question {
        padding: 0.8rem;
    }
    
    .faq-question h3 {
        font-size: 0.85rem;
    }
    
    .faq-answer p {
        font-size: 0.8rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 0.8rem;
    }
    
    .modal-footer {
        padding: 0.6rem;
    }
    
    .modal-footer .btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}
@media (min-width: 1200px) {
    :root {
        --welcome-title-size: 1.6rem;
        --welcome-subtitle-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .quick-start-card h3,
    .category-header h3,
    .help-card h3 {
        font-size: 1.5rem;
    }
    
    .quick-start-card p,
    .category-content p,
    .help-card p {
        font-size: 1.1rem;
    }
}

/* High Contrast Mode for Better Visibility */
@media (prefers-contrast: high) {
    .quick-start-card,
    .category-card,
    .help-card {
        border: 2px solid #333;
    }
    
    .btn-start,
    .help-btn {
        border: 2px solid #2E7D32;
    }
    
    .guide-item {
        border: 1px solid #ddd;
    }
}

/* Print Styles */
@media print {
    .guide-modal,
    .modal-overlay,
    .help-section {
        display: none;
    }
    
    .quick-start-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-start-card,
    .category-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}
/* Container Optimizations */
.container {
    padding: 0 0.8rem; /* Kurangi padding untuk mobile */
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Optimasi untuk touch devices */
    .guide-item,
    .faq-question,
    .quick-start-card,
    .category-card,
    .help-card {
        min-height: 48px; /* Increase touch target */
    }
    
    .btn-start,
    .help-btn,
    .modal-footer .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .close-modal {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    .quick-start-card,
    .category-card,
    .help-card,
    .guide-item,
    .faq-question {
        transition: none;
    }
    
    .guide-modal {
        transition: opacity 0.2s ease;
    }
}

/* Performance Optimizations */
.guide-modal,
.modal-overlay {
    will-change: opacity, visibility;
}

.quick-start-card,
.category-card,
.help-card {
    will-change: transform;
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    .quick-start-card,
    .category-card,
    .help-card,
    .guide-item,
    .faq-item {
        border: 2px solid #333;
    }
    
    .btn-start,
    .help-btn {
        border: 2px solid #2E7D32;
    }
}

/* Print Optimizations */
@media print {
    .guide-modal,
    .modal-overlay,
    .help-section {
        display: none;
    }
    
    .quick-start-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-start-card,
    .category-card {
        break-inside: avoid;
        margin-bottom: 0.5rem;
        padding: 0.8rem;
    }
    
    .welcome-section {
        background: none !important;
        color: black !important;
    }
}
/* ===== DARK MODE STYLES ===== */

/* Dark Mode Variables */
.dark-mode {
    --primary-color: #3d6b35;
    --bg-body: #1a1a1a;
    --bg-card: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --welcome-bg-start: #2d4a2a;
    --welcome-bg-end: #3d6b35;
}

/* Apply dark mode body background */
.dark-mode body {
    background-color: var(--bg-body);
    color: var(--text-primary);
}

/* Welcome Section Dark Mode */
.dark-mode .welcome-section {
    background: linear-gradient(135deg, var(--welcome-bg-start) 0%, var(--welcome-bg-end) 100%);
}

/* Cards Dark Mode */
.dark-mode .quick-start-card,
.dark-mode .category-card,
.dark-mode .help-card,
.dark-mode .faq-item {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: 0 3px 10px var(--shadow-color);
}

.dark-mode .quick-start-card:hover,
.dark-mode .category-card:hover,
.dark-mode .help-card:hover {
    box-shadow: 0 6px 20px var(--shadow-color);
}

/* Section Headers Dark Mode */
.dark-mode .section-header h2 {
    color: var(--primary-color);
}

.dark-mode .section-header p {
    color: var(--text-secondary);
}

/* Category Headers Dark Mode */
.dark-mode .category-header {
    background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
}

.dark-mode .category-header h3 {
    color: var(--text-primary);
}

.dark-mode .category-content p {
    color: var(--text-secondary);
}

/* Guide Items Dark Mode */
.dark-mode .guide-item {
    background: #3a3a3a;
    color: var(--text-primary);
}

.dark-mode .guide-item:hover {
    background: #404040;
}

.dark-mode .guide-item span {
    color: var(--text-primary);
}

/* Difficulty Badges Dark Mode */
.dark-mode .difficulty.easy {
    background: rgba(46, 125, 50, 0.3);
    color: #81c784;
}

.dark-mode .difficulty.medium {
    background: rgba(245, 124, 0, 0.3);
    color: #ffb74d;
}

/* FAQ Dark Mode */
.dark-mode .faq-question {
    background: #3a3a3a;
    color: var(--text-primary);
}

.dark-mode .faq-question:hover {
    background: #404040;
}

.dark-mode .faq-question h3 {
    color: var(--text-primary);
}

.dark-mode .faq-answer p {
    color: var(--text-secondary);
}

/* Modal Dark Mode */
.dark-mode .guide-modal {
    background: var(--bg-card);
    color: var(--text-primary);
}

.dark-mode .modal-header {
    background: var(--primary-color);
}

.dark-mode .modal-body {
    color: var(--text-primary);
}

.dark-mode .modal-footer {
    background: #3a3a3a;
}

/* Guide Content Dark Mode */
.dark-mode .guide-step h4 {
    color: var(--primary-color);
}

.dark-mode .guide-step p {
    color: var(--text-secondary);
}

.dark-mode .guide-tip {
    background: rgba(46, 125, 50, 0.2);
    border-left-color: var(--primary-color);
}

.dark-mode .guide-tip strong {
    color: #81c784;
}

.dark-mode .guide-warning {
    background: rgba(245, 124, 0, 0.2);
    border-left-color: #ff9800;
}

.dark-mode .guide-warning strong {
    color: #ffb74d;
}

/* Buttons Dark Mode */
.dark-mode .btn-start,
.dark-mode .help-btn {
    background: var(--primary-color);
}

.dark-mode .btn-start:hover,
.dark-mode .help-btn:hover {
    background: #2d4a2a;
}

.dark-mode .help-btn.whatsapp {
    background: #1e7e34;
}

.dark-mode .help-btn.whatsapp:hover {
    background: #155724;
}

/* Modal Buttons Dark Mode */
.dark-mode .modal-footer .btn-primary {
    background: var(--primary-color);
}

.dark-mode .modal-footer .btn-primary:hover {
    background: #2d4a2a;
}

.dark-mode .modal-footer .btn-secondary {
    background: #495057;
}

.dark-mode .modal-footer .btn-secondary:hover {
    background: #343a40;
}

/* Icons Dark Mode */
.dark-mode .help-icon,
.dark-mode .card-icon,
.dark-mode .category-header .category-icon {
    color: var(--primary-color);
}

/* Guide Duration Badge Dark Mode */
.dark-mode .guide-duration {
    background: var(--primary-color);
}

/* Mobile Dark Mode Adjustments */
@media (max-width: 768px) {
    .dark-mode .welcome-content {
        color: var(--text-primary);
    }
    
    .dark-mode .stat-item {
        color: var(--text-secondary);
    }
    
    .dark-mode .quick-start-card,
    .dark-mode .category-card,
    .dark-mode .help-card {
        box-shadow: 0 2px 8px var(--shadow-color);
    }
}

/* Small Mobile Dark Mode */
@media (max-width: 480px) {
    .dark-mode .guide-modal {
        box-shadow: 0 10px 25px var(--shadow-color);
    }
    
    .dark-mode .modal-body {
        background: var(--bg-card);
    }
}

/* High Contrast Dark Mode */
@media (prefers-contrast: high) {
    .dark-mode .quick-start-card,
    .dark-mode .category-card,
    .dark-mode .help-card,
    .dark-mode .guide-item,
    .dark-mode .faq-item {
        border: 2px solid #666;
    }
    
    .dark-mode .btn-start,
    .dark-mode .help-btn {
        border: 2px solid var(--primary-color);
    }
}

/* Print Dark Mode (Force Light) */
@media print {
    .dark-mode .welcome-section,
    .dark-mode .quick-start-card,
    .dark-mode .category-card,
    .dark-mode .help-card,
    .dark-mode .faq-item {
        background: white !important;
        color: black !important;
    }
    
    .dark-mode .section-header h2,
    .dark-mode .category-header h3,
    .dark-mode .guide-item span,
    .dark-mode .faq-question h3 {
        color: black !important;
    }
}