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

:root {
    --color-yes: #22c55e;
    --color-yes-dark: #16a34a;
    --color-no: #ef4444;
    --color-no-dark: #dc2626;
    --color-maybe: #f59e0b;
    --color-maybe-dark: #d97706;
    --color-bg: #0f172a;
    --color-bg-light: #1e293b;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: #334155;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Bridge Tabs */
.bridge-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab:hover {
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

.tab.active {
    background: var(--color-bg-light);
    border-color: var(--color-text);
    color: var(--color-text);
}

/* Status Display */
.status-container {
    text-align: center;
    margin-bottom: 2rem;
}

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.status-text {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.status-yes {
    background: linear-gradient(135deg, var(--color-yes) 0%, var(--color-yes-dark) 100%);
}

.status-no {
    background: linear-gradient(135deg, var(--color-no) 0%, var(--color-no-dark) 100%);
}

.status-maybe {
    background: linear-gradient(135deg, var(--color-maybe) 0%, var(--color-maybe-dark) 100%);
}

.status-description {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Camera Section */
.camera-section {
    margin-bottom: 2rem;
}

.camera-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.camera-container {
    background: var(--color-bg-light);
    border-radius: 12px;
    overflow: hidden;
}

.camera-container img {
    width: 100%;
    height: auto;
    display: block;
}

.camera-note {
    padding: 0.5rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* Notify Section */
.notify-section {
    background: var(--color-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.notify-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.notify-section > p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.notify-form .input-row {
    display: flex;
    gap: 0.5rem;
}

.notify-form input[type="tel"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 1rem;
}

.notify-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--color-yes);
}

.notify-form input[type="tel"]::placeholder {
    color: var(--color-text-muted);
}

/* Consent Checkbox */
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    margin-top: 2px;
    accent-color: var(--color-yes);
    cursor: pointer;
}

.consent-text {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* SMS Terms Link */
.sms-terms {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.sms-terms a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.sms-terms a:hover {
    text-decoration: underline;
}

/* Schedule Section */
.schedule-section {
    margin-bottom: 2rem;
}

.schedule-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.schedule-note {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.schedule-list {
    list-style: none;
    margin-bottom: 0.75rem;
}

.schedule-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-disclaimer {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-yes);
    color: white;
}

.btn-primary:hover {
    background: var(--color-yes-dark);
}

.actions-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-share,
.btn-donate {
    flex: 1;
    background: var(--color-bg-light);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-share:hover,
.btn-donate:hover {
    border-color: var(--color-text-muted);
    background: var(--color-border);
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    text-align: center;
}

.disclaimer {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .status-text {
        font-size: 4rem;
    }

    .status {
        padding: 2.5rem 1.5rem;
    }

    .notify-form .input-row {
        flex-direction: column;
    }

    .actions-section {
        flex-direction: column;
    }
}

/* Animation for status changes */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.status.changing {
    animation: pulse 0.5s ease-in-out;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--color-text);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
