/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Header ===== */
.header {
    background-image: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%), url('img/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 40px 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/background.png');
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    z-index: -1;
}

/* Center logo and tagline inside header container */
.header .container {
    text-align: center;
}

.header .logo {
    align-items: center;
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header .tagline {
    font-size: 1.1em;
    opacity: 0.9;
}

/* ===== Navigation ===== */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 15px 0;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 3px solid transparent;
    padding-bottom: 12px;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* ===== Search Bar ===== */
.search-bar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95em;
    width: 200px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.2);
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.2s ease;
}

.search-btn:hover {
    transform: scale(1.05);
}

.theme-toggle {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
    background: rgba(102,126,234,0.06);
}

/* Changelog button (placed next to theme toggle) */
.changelog-btn {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.changelog-btn:hover {
    transform: scale(1.05);
    background: rgba(102,126,234,0.06);
}

/* Welcome Popup */
.welcome-popup {
    display: none;
    position: fixed;
    z-index: 1200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.welcome-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-popup-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideIn 0.4s ease;
}

.welcome-popup-content h2 {
    margin: 0 0 20px 0;
    font-size: 1.8em;
    color: white;
}

.welcome-popup-content p {
    margin: 15px 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.welcome-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.welcome-popup-close:hover {
    opacity: 1;
}

.welcome-popup-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.welcome-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Dark mode for Welcome Popup */
.dark .welcome-popup {
    background-color: rgba(0, 0, 0, 0.85);
}

.dark .welcome-popup-content {
    background: linear-gradient(135deg, #3a4bd6 0%, #5b3fa8 100%);
}

/* Changelog Modal */
.changelog-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.changelog-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.changelog-modal-content {
    background-color: white;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 720px;
    max-height: 70vh;
    overflow-y: auto;
}

.changelog-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.changelog-modal-header h2 { margin: 0; }

.changelog-modal-close {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #999;
}

.changelog-entries { display: flex; flex-direction: column; gap: 12px; }
.changelog-entry { background: #f7f7fb; padding: 12px; border-radius: 6px; }
.changelog-entry strong { display: block; margin-bottom: 6px; color: #333; }

@media (max-width: 480px) {
    .changelog-modal-content { padding: 16px; }
    .changelog-entry { font-size: 0.95em; }
}

/* Dark mode for Changelog */
.dark .changelog-modal {
    background-color: rgba(0, 0, 0, 0.85);
}

.dark .changelog-modal-content {
    background-color: #121217;
    color: #e6e6e6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.04);
}

.dark .changelog-modal-header {
    border-bottom-color: #3a4bd6;
}

.dark .changelog-entry {
    background-color: #0f1115;
    border: 1px solid rgba(255,255,255,0.03);
    color: #e6e6e6;
}

.dark .changelog-entry strong { color: #ffffff; }

.dark .changelog-modal-close { color: #ddd; }

.dark .changelog-btn {
    border-color: #2a2a2a;
    color: #e6e6e6;
}

.dark .changelog-btn:hover {
    background: rgba(58,75,214,0.08);
}

.theme-toggle[aria-pressed="true"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%), 
                url('img/hero-background.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.3em;
    opacity: 0.9;
}

/* ===== Site Stats (Homepage) ===== */
.site-stats {
    margin-top: 20px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-stats p {
    margin: 0;
    font-size: 1.3em;
    opacity: 0.9;
    max-width: 400px;
    text-align: center;
}

.site-stats .stat {
    background: rgba(255,255,255,0.08);
    padding: 10px 16px;
    border-radius: 10px;
    min-width: 160px;
    text-align: center;
}

.site-stats .label {
    display: block;
    font-size: 0.9em;
    opacity: 0.95;
}

.site-stats .value {
    font-size: 1.4em;
    font-weight: 700;
    margin-top: 6px;
}

/* ===== Main Content ===== */
.main-content {
    min-height: 60vh;
    padding: 0px 0;
}

/* ===== Guides Section ===== */
.guides {
    padding: 40px 0;
    background-color: white;
    margin-bottom: 40px;
}

.guides h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: #333;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ===== Guide Card ===== */
.guide-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #667eea;
    text-align: center;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.guide-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.guide-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #333;
}

.guide-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.guide-card:last-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 300px;
    justify-self: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ===== FAQ Section ===== */
.faq {
    padding: 40px 0;
    background-color: #f9f9f9;
    margin-bottom: 40px;
}

.faq h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: #333;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container hr {
    margin: 20px 0;
}

.faq-item {
    background: white;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.faq-item summary {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
    outline: none;
    user-select: none;
}

.faq-item summary:hover {
    color: #667eea;
}

.faq-item p {
    margin-top: 12px;
    color: #666;
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

.footer p {
    margin-bottom: 10px;
}

.footer a {
    color: #667eea;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== Search Modal ===== */
.search-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.search-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.search-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 15px;
}

.search-modal-header h2 {
    margin: 0;
    color: #333;
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-modal-close:hover {
    color: #667eea;
}

.search-results-container {
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    padding: 15px;
    border-left: 4px solid #667eea;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f0f0f0;
}

.search-result-item h3 {
    margin: 0 0 8px 0;
    color: #667eea;
    font-size: 1.1em;
}

.search-result-item p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1.1em;
}

.search-highlight {
    background-color: #fff3cd;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
}

/* ===== Guide Pages ===== */
.guide-page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.guide-page-hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    margin-top: 15px;
}

.guide-page-hero p {
    font-size: 1.1em;
    opacity: 0.9;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.95em;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: underline;
}

.guide-content {
    padding: 20px 0 40px;
}

.guide-content .container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
}

.guide-article {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.guide-article section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.guide-article section:last-child {
    border-bottom: none;
}

.guide-article h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
    margin-top: 20px;
}

.guide-article h3 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: #555;
    margin-top: 15px;
}

.guide-article p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.guide-article ul,
.guide-article ol {
    margin-left: 20px;
    margin-bottom: 15px;
    text-align: left;
    display: inline-block;
}

.guide-article li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.guide-article code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: #c7254e;
}

.guide-article pre {
    background-color: #f8f8f8;
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.guide-article pre code {
    color: inherit;
    background: none;
    padding: 0;
}

.shortcut-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.shortcut-table th,
.shortcut-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.shortcut-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.shortcut-table tr:hover {
    background-color: #f9f9f9;
}

.shortcut-table kbd {
    background-color: #fff;
    border: 1px solid #999;
    border-radius: 3px;
    padding: 2px 6px;
    font-family: monospace;
    display: inline-block;
    margin: 0 2px;
}

.tip-section {
    background-color: #f0f7ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.tip-section h3 {
    margin-top: 0;
}

.navigation-section {
    margin-top: 30px;
    padding-top: 20px;
}

.guide-sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.guide-sidebar h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
}

.guide-sidebar ul {
    list-style: none;
    margin-left: 0;
}

.guide-sidebar li {
    margin-bottom: 10px;
}

.guide-sidebar a {
    color: #667eea;
    font-weight: 500;
    transition: color 0.2s;
}

.guide-sidebar a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.guide-sidebar hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* ===== Contact Page ===== */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.contact-hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.contact-hero p {
    font-size: 1.2em;
    opacity: 0.9;
}

.contact-content {
    padding: 20px 0 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-form-section,
.contact-info-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.2);
}

.contact-info-item {
    margin-bottom: 25px;
}

.contact-info-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.contact-info-item p {
    margin-bottom: 5px;
}

.contact-info-item a {
    color: #667eea;
    font-weight: 600;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.small-text {
    font-size: 0.9em;
    color: #999;
}

.social-link {
    color: #667eea;
    font-weight: 600;
    margin: 0 5px;
}

.social-link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-message.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.support-resources {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.support-resources h2 {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.resource-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    text-align: center;
    transition: transform 0.2s;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card h3 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: #333;
}

.resource-card p {
    margin-bottom: 15px;
    color: #666;
}

/* ===== Dark Mode (Overrides) ===== */
.dark {
    background-color: #0f1115;
    color: #ffffff; /* make base text color white in dark mode */
}

.dark .header {
    background: linear-gradient(135deg, #2b2f45 0%, #1f2230 100%);
    color: #e6e6e6;
}

.dark .logo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark .tagline {
    color: #ffffff;
}

.dark .navbar {
    background-color: #111217;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.dark .nav-link {
    color: #ffffff;
}

.dark .nav-link.active,
.dark .nav-link:hover {
    color: #9fb7ff;
    border-bottom-color: #9fb7ff;
}

.dark .hero {
    background: linear-gradient(135deg, #1b1f2e 0%, #11121a 100%);
    color: #e6e6e6;
}

.dark .guide-article,
.dark .guide-sidebar,
.dark .contact-form-section,
.dark .contact-info-section,
.dark .support-resources,
.dark .resource-card,
.dark .search-modal-content {
    background-color: #121217;
    color: #e6e6e6;
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

.dark .guide-article h2,
.dark .guide-article h3,
.dark .resource-card h3 {
    color: #ffffff;
}

.dark .guide-sidebar a {
    color: #9fb7ff;
}

.dark .guide-sidebar a:hover {
    color: #c6d7ff;
}

.dark .guides,
.dark .faq {
    background-color: #0f1115;
}

.dark .guides h2 {
    color: #ffffff;
}

.dark .faq h2 {
    color: #9b62d4;
}

.dark .faq-container {
    background-color: #0f1115;
}

.dark .faq-item {
    background-color: #272729;
    border-left-color: #667eea;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.dark .faq-item summary {
    color: #ffffff;
}

.dark .faq-item summary:hover {
    color: #9fb7ff;
}

.dark .faq-item p {
    color: #e6e6e6;
}

.dark .guide-card {
    background-color: #14161a;
    border-top-color: #2b3350;
    color: #ffffff;
}

.dark .guide-card h3 {
    color: #ffffff;
}

.dark .guide-card p {
    color: #e6e6e6;
}

.dark .footer {
    background-color: #0a0b0d;
    color: #cfcfcf;
}

.dark .btn-primary,
.dark .search-btn,
.dark .theme-toggle[aria-pressed="true"] {
    background: linear-gradient(135deg, #3a4bd6 0%, #5b3fa8 100%);
    color: white;
}

.dark .search-input {
    background: #0f1115;
    color: #ffffff;
    border-color: #2a2a2a;
}

.dark .search-input::placeholder {
    color: #888;
}

.dark .search-result-item {
    background-color: #101217;
    border-left-color: #3a4bd6;
}

.dark .search-no-results {
    color: #ffffff;
}

.dark .shortcut-table th,
.dark .shortcut-table td {
    border-color: #252525;
}

.dark .shortcut-table th {
    background-color: #0f1115;
    color: #ffffff;
}

.dark .shortcut-table tr:hover {
    background-color: #1a1c21;
}

.dark .shortcut-table kbd {
    color: #000000;
}

.dark .guide-page-hero {
    background: linear-gradient(135deg, #1b1f2e 0%, #11121a 100%);
    color: #e6e6e6;
}

.dark .guide-page-hero h1 {
    color: #ffffff;
}

.dark .guide-page-hero p {
    color: #e6e6e6;
}

.dark .breadcrumb {
    color: #ffffff;
}

.dark .breadcrumb a {
    color: #ffffff;
}

.dark .contact-hero {
    background: linear-gradient(135deg, #1b1f2e 0%, #11121a 100%);
    color: #e6e6e6;
}

.dark .contact-hero h1 {
    color: #ffffff;
}

.dark .contact-hero p {
    color: #e6e6e6;
}

.dark .form-group label {
    color: #ffffff;
}

.dark .form-group input,
.dark .form-group select,
.dark .form-group textarea {
    background-color: #0f1115;
    color: #ffffff;
    border-color: #2a2a2a;
}

.dark .form-group input:focus,
.dark .form-group select:focus,
.dark .form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.2);
}

.dark .contact-info-item h3 {
    color: #ffffff;
}

.dark .contact-info-item p {
    color: #e6e6e6;
}

.dark .small-text {
    color: #999;
}

.dark .form-message.success {
    background-color: #1e4620;
    border-color: #2d5f2e;
    color: #90ee90;
}

.dark .form-message.error {
    background-color: #4a1f1f;
    border-color: #6b2e2e;
    color: #ff6b6b;
}

.dark .form-message.info {
    background-color: #1a3544;
    border-color: #2a5566;
    color: #7dd3fc;
}

.dark .submit-btn {
    background: linear-gradient(135deg, #3a4bd6 0%, #5b3fa8 100%);
}

/* ===== Einreise Flowchart Styles ===== */
.einreise-flowchart {
    background: #f9f9f9;
}

.flowchart-warning {
    background: #fff3cd;
}

.flowchart-danger {
    background: #ffc9c9;
}

.flowchart-success {
    background: #d4edda;
}

.flowchart-success h4 {
    color: #155724;
}

.flowchart-fail {
    background: #f8d7da;
}

.flowchart-fail h4 {
    color: #721c24;
}

/* Dark Mode for Einreise Flowchart */
.dark .einreise-flowchart {
    background: #1a1c21;
}

.dark .flowchart-step {
    color: #e6e6e6;
}

.dark .flowchart-warning {
    background: #3a3415;
    color: #ffd966;
}

.dark .flowchart-danger {
    background: #3a1515;
    color: #ff9999;
}

.dark .flowchart-success {
    background: #1a3a1f;
}

.dark .flowchart-success h4 {
    color: #90ee90;
}

.dark .flowchart-fail {
    background: #3a1a1f;
}

.dark .flowchart-fail h4 {
    color: #ff9999;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .header .logo {
        align-items: center;
        font-size: 1.5em;
        color: rgb(199, 166, 229);
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .search-bar {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }

    .guides h2,
    .faq h2 {
        font-size: 1.5em;
    }

    .guide-page-hero h1 {
        font-size: 1.8em;
    }

    .guide-content .container {
        grid-template-columns: 1fr;
    }

    .guide-sidebar {
        position: static;
        top: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-hero h1 {
        font-size: 1.8em;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header .logo {
        align-items: center;
        font-size: 1.2em;
        color: blueviolet;
    }

    .hero {
        padding: 30px 0;
    }

    .hero h2 {
        font-size: 1.4em;
    }

    .guide-card {
        padding: 20px;
    }

    .guide-icon {
        font-size: 2em;
    }
}
