@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Design System Tokens */
:root {
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Base Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Dark Theme Variables (Default) */
[data-theme="dark"] {
    --bg-primary: #080c14;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    
    /* Accents */
    --accent-indigo: #6366f1;
    --accent-indigo-glow: rgba(99, 102, 241, 0.15);
    --accent-teal: #14b8a6;
    --accent-teal-glow: rgba(20, 184, 166, 0.15);
    --accent-gold: #f59e0b;
    --accent-gold-glow: rgba(245, 158, 11, 0.15);
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.15);
    
    /* Card Glass Styles */
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-blur: blur(12px);
    --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.16);
    
    /* Accents */
    --accent-indigo: #4f46e5;
    --accent-indigo-glow: rgba(79, 70, 229, 0.08);
    --accent-teal: #0d9488;
    --accent-teal-glow: rgba(13, 148, 136, 0.08);
    --accent-gold: #d97706;
    --accent-gold-glow: rgba(217, 119, 6, 0.08);
    --accent-red: #dc2626;
    --accent-red-glow: rgba(220, 38, 38, 0.08);
    
    /* Card Glass Styles */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-blur: blur(8px);
    --shadow-main: 0 10px 30px 0 rgba(31, 41, 55, 0.06);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.05);
}

/* Global resets & styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-indigo);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--accent-teal);
}

/* Page Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-normal), border-color var(--transition-normal);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.logo span {
    font-weight: 300;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-indigo);
    transition: width var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.theme-toggle-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--border-hover);
}

/* Hero Section */
.hero {
    padding: 4.5rem 0 3rem;
    text-align: center;
    background: radial-gradient(circle at top, var(--accent-indigo-glow), transparent 60%);
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, opacity var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
    font-family: var(--font-body);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-indigo));
    color: white;
    border: none;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

/* Glass Card Component */
.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-main);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-main), var(--shadow-glow);
}

/* Grid Layout for Destination Tiles */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.destination-card {
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-indigo);
    opacity: 0.7;
    transition: height var(--transition-normal);
}
.destination-card:hover::before {
    height: 100%;
    background: var(--accent-teal);
}

.destination-card .country-name {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.destination-card .country-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.destination-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.arrow-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.destination-card:hover .arrow-icon {
    background: var(--accent-indigo);
    color: white;
    transform: translateX(4px);
}

/* Dashboard Filter Bar (Analyzer) */
.filter-panel {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-main);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-select, .form-input {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-select:focus, .form-input:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px var(--accent-indigo-glow);
}

/* Analyzer Results layout */
.analyzer-results {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .analyzer-results {
        grid-template-columns: 1fr;
    }
}

.results-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Checklist Progress Card */
.progress-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.progress-container {
    margin: 1.5rem 0;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: var(--bg-primary);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-teal));
    border-radius: 5px;
    transition: width 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Requirement checklist item list */
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
}
.checklist-item:hover {
    background-color: var(--bg-tertiary);
}
.checklist-item:last-child {
    border-bottom: none;
}

.checklist-checkbox {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-indigo);
    cursor: pointer;
}

.checklist-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.checklist-title {
    font-weight: 600;
    font-size: 0.98rem;
}

.checklist-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Document badge & Metadata cards */
.meta-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent-indigo-glow);
    color: var(--accent-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.meta-info {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-weight: 600;
    font-size: 1rem;
}

/* Badge list */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-blue {
    background: var(--accent-indigo-glow);
    color: var(--accent-indigo);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-teal {
    background: var(--accent-teal-glow);
    color: var(--accent-teal);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.badge-gold {
    background: var(--accent-gold-glow);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-red {
    background: var(--accent-red-glow);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Detailed guide tabs */
.guides-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-indigo);
    border-radius: 2px;
}

.guide-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.guide-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
    transition: all var(--transition-fast);
}

.guide-tab.active {
    color: var(--accent-indigo);
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--accent-indigo);
}

.guide-tab:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* Guide content layout */
.guide-content-panel {
    display: none;
}
.guide-content-panel.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

.guide-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }
}

.guide-text h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
}
.guide-text h3:first-child {
    margin-top: 0;
}

.guide-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.guide-text ul {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.guide-text li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.guide-text li::before {
    content: "➔";
    position: absolute;
    left: 0;
    color: var(--accent-indigo);
}

/* Disclaimer banner */
.disclaimer {
    background: var(--accent-gold-glow);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 2rem;
    color: var(--text-primary);
}

.disclaimer-icon {
    color: var(--accent-gold);
    font-size: 1.5rem;
}

.disclaimer p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Commune (Community Space) */
.commune-section {
    padding: 4rem 0;
}

.commune-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.commune-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.forum-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.post-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
}

.vote-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 8px;
    width: 48px;
    padding: 0.5rem 0;
}

.vote-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.vote-btn:hover {
    color: var(--accent-indigo);
    transform: translateY(-2px);
}

.vote-count {
    font-weight: 700;
    font-size: 0.95rem;
}

.post-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.post-author {
    font-weight: 600;
    color: var(--text-primary);
}

.post-time {
    position: relative;
    padding-left: 0.5rem;
}
.post-time::before {
    content: "•";
    position: absolute;
    left: -0.25rem;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.post-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.post-comments {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.comment-item {
    font-size: 0.85rem;
    background: var(--bg-primary);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.comment-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.comment-input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
}

.comment-submit {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Modal dialogue styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
    animation: fadeIn var(--transition-fast);
}

.modal-card {
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.modal-close:hover {
    color: var(--accent-red);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer rules */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links h5 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 1rem;
}

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

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    animation: whatsapp-pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background-color: #20ba5a;
}

.whatsapp-icon {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon {
    transform: rotate(10deg);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-main);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
    transform: translateX(10px);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Optimization Media Queries (Screen width 768px or less) */
@media (max-width: 768px) {
    /* Main Layout */
    .container {
        padding: 0 1rem;
    }
    
    /* Header & Navigation */
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 0.75rem;
        text-align: center;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }

    /* Hero section */
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Cards and padding */
    .card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    /* Filter Panel */
    .filter-panel {
        padding: 1rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    
    /* Quick details boxes */
    .meta-box {
        padding: 0.75rem;
    }
    
    .meta-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .meta-value {
        font-size: 0.9rem;
    }

    /* Document requirements checklists */
    .checklist-item {
        padding: 0.75rem 0.25rem;
        gap: 0.75rem;
    }
    
    .checklist-checkbox {
        width: 16px;
        height: 16px;
    }
    
    .checklist-title {
        font-size: 0.92rem;
    }
    
    .checklist-desc {
        font-size: 0.8rem;
    }
    
    /* Section headers */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Tabs scrolling list */
    .guide-tabs {
        margin-bottom: 1.25rem;
    }
    
    .guide-tab {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    /* Guides content text size */
    .guide-text h3 {
        font-size: 1.2rem;
    }
    
    .guide-text p, .guide-text li {
        font-size: 0.9rem;
    }
    
    /* Floating WhatsApp button position & tooltip */
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 22px;
        height: 22px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Hide tooltip on hover for mobile, as hover doesn't exist on tap devices */
    }

    /* Commune Forum Elements */
    .post-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .vote-box {
        width: 38px;
        padding: 0.35rem 0;
    }
    
    .vote-btn {
        font-size: 1rem;
    }
    
    .vote-count {
        font-size: 0.85rem;
    }
    
    .post-title {
        font-size: 1.05rem;
    }
    
    .post-body {
        font-size: 0.88rem;
    }
    
    .comment-item {
        padding: 0.5rem 0.75rem;
    }
    
    .comment-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .comment-submit {
        width: 100%;
        text-align: center;
    }
    
    /* Footer details */
    footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-grid {
        gap: 1.5rem;
    }
    
    .footer-bottom {
        text-align: center;
        justify-content: center;
    }
}
