/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    padding-top: 110px;
    padding-bottom: 40px;
    line-height: 1.7;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #4f46e5;
}

.logo span {
    color: #64748b;
    font-weight: 500;
}

.language-toggle {
    display: flex;
    gap: 4px;
}

.language-toggle button {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.025em;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-toggle button.active {
    background: #4f46e5;
    color: white;
}

.language-toggle button:hover:not(.active) {
    background: #e2e8f0;
}

/* Jump Navigation */
.jump-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
    margin-top: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    overflow: hidden;
}

/* Content area */
.content {
    padding: 0;
}

/* Hero Section */
.hero {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

/* Section Cards */
.section-card {
    border-bottom: 1px solid #e2e8f0;
}

.section-card:last-of-type {
    border-bottom: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    cursor: pointer;
    background: #f8fafc;
    transition: background 0.2s ease;
}

.section-header:hover {
    background: #f1f5f9;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}

.section-header:hover .toggle-icon {
    background: #4f46e5;
    color: white;
}

/* Section Content (Collapsible) */
.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 40px;
}

.section-content.open {
    max-height: 2000px;
    padding: 24px 40px;
}

/* Emergency Card Styling */
.emergency-card .section-header {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.emergency-card .section-header:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.emergency-card .section-header h2 {
    color: #dc2626;
}

.emergency-card .toggle-icon {
    background: #fecaca;
    color: #dc2626;
}

.emergency-card .section-header:hover .toggle-icon {
    background: #dc2626;
    color: white;
}

/* Big Buttons */
.big-button {
    display: block;
    width: 100%;
    padding: 18px 24px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.25);
}

.big-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.big-button:last-child {
    margin-bottom: 0;
}

.big-button.emergency {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    font-size: 20px;
    padding: 22px 24px;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.25);
}

.big-button.emergency:hover {
    box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.4);
}

.big-button.secondary {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.25);
}

.big-button.secondary:hover {
    box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.4);
}

.big-button .small {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-top: 6px;
    opacity: 0.85;
}

/* Rights Box */
.rights-box {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    position: relative;
    padding-left: 32px;
}

.rights-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #4f46e5;
    border-radius: 12px 0 0 12px;
}

.rights-box:last-child {
    margin-bottom: 0;
}

.rights-box ul {
    margin-left: 20px;
    margin-top: 12px;
}

.rights-box li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #475569;
}

.rights-box li:last-child {
    margin-bottom: 0;
}

.rights-box p {
    color: #334155;
}

.rights-box strong {
    color: #1e293b;
}

/* Warning Rights Box */
.rights-box.warning {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.rights-box.warning::before {
    background: #dc2626;
}

.rights-box.warning .warning-note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #fecaca;
    color: #dc2626;
}

/* Highlight Rights Box (for detention info) */
.rights-box.highlight {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}

.rights-box.highlight::before {
    background: #f59e0b;
}

.detention-info {
    font-size: 16px;
    margin-top: 12px;
}

.detention-number {
    font-size: 28px;
    font-weight: 700;
    color: #f59e0b;
    margin: 12px 0;
}

.detention-hours {
    font-size: 13px;
    color: #64748b;
}

/* Footer */
footer {
    padding: 24px 40px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

footer p {
    margin-bottom: 4px;
}

.last-updated {
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
}

/* Donate Section */
.donate-section {
    text-align: center;
    padding: 32px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
}

.donate-section p {
    margin-bottom: 16px;
    color: #64748b;
    font-size: 15px;
}

.donate-button {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.25);
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    body {
        padding-top: 100px;
        padding-bottom: 20px;
    }
    
    .header-content {
        padding: 10px 16px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .language-toggle button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .jump-nav {
        justify-content: flex-start;
        padding: 8px 12px;
        gap: 6px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .container {
        margin: 10px;
        border-radius: 12px;
    }
    
    .hero {
        padding: 24px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h2 {
        font-size: 15px;
    }
    
    .section-content.open {
        padding: 20px;
    }
    
    .big-button {
        font-size: 15px;
        padding: 16px 20px;
    }
    
    .big-button.emergency {
        font-size: 17px;
        padding: 18px 20px;
    }
    
    .big-button .small {
        font-size: 13px;
    }
    
    .rights-box {
        padding: 20px;
        padding-left: 24px;
    }
    
    .detention-number {
        font-size: 24px;
    }
    
    .donate-section,
    footer {
        padding: 20px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}