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

body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: #f7fafc;
    height: 100vh;
    overflow: hidden;
}

/* Permission Modal - Government Style */
.permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.permission-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
}

.gov-logo {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gov-logo h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0;
}

.permission-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #1a202c;
    font-weight: 600;
    line-height: 1.3;
}

.permission-content p {
    font-size: 0.95rem;
    margin-bottom: 28px;
    color: #4a5568;
    line-height: 1.5;
}

.permission-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
    flex-direction: column;
}

.permission-note {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.3;
}

/* Buttons - Government Style */
.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    margin-bottom: 8px;
}

.btn-primary {
    background: #1e3a8a;
    color: white;
    border: 1px solid #1e3a8a;
}

.btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

/* Loading Screen - Government Style */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-content {
    text-align: center;
    color: #1a202c;
}

.loading-content p {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 500;
}

/* Government Spinner */
.gov-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    position: relative;
}

.spinner-circle {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #1e3a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Main Content - Full Screen Portal */
/* Main content and iframe styles removed - using direct redirect to YouTube */

/* Responsive Design */
@media (max-width: 768px) {
    .permission-content {
        padding: 32px 24px;
        margin: 20px;
        border-radius: 8px;
        max-width: none;
        width: calc(100% - 40px);
    }

    .permission-content h3 {
        font-size: 1.3rem;
    }

    .permission-content p {
        font-size: 0.9rem;
    }

    .btn {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .permission-content {
        padding: 24px 20px;
        margin: 0;
        border-radius: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .permission-modal {
        background: rgba(0, 0, 0, 0.8);
    }

    .gov-logo h2 {
        font-size: 1rem;
    }

    .permission-content h3 {
        font-size: 1.25rem;
    }

    .permission-content p {
        font-size: 0.875rem;
    }

    .loading-content p {
        font-size: 1rem;
    }
}

/* Hide all body scroll when main content is shown */
body.has-portal {
    overflow: hidden;
}

/* Ensure iframe takes full viewport on all devices */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific fix */
    .fullscreen-iframe {
        height: -webkit-fill-available;
        min-height: 100vh;
    }
}