@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@400;500;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #060a10;
    --bg-surface: #0d1520;
    --bg-card: #121d2e;
    --ice: #00d4ff;
    --ice-glow: rgba(0, 212, 255, 0.15);
    --ice-dim: #0891b2;
    --warmth: #ff6b35;
    --warmth-glow: rgba(255, 107, 53, 0.2);
    --text: #e8eef4;
    --text-dim: #7a8ca0;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 6px;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Arena atmosphere - subtle rink lines */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, var(--ice-glow) 0%, transparent 50%),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent calc(50% - 1px),
            rgba(0, 212, 255, 0.03) calc(50% - 1px),
            rgba(0, 212, 255, 0.03) calc(50% + 1px),
            transparent calc(50% + 1px),
            transparent 100%
        );
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

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

h1 {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--ice);
    box-shadow: 0 0 20px var(--ice), 0 0 40px rgba(0, 212, 255, 0.3);
}

.subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-top: 1rem;
}

/* Selector Card */
.selector {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ice), transparent);
    opacity: 0.5;
}

.field {
    margin-bottom: 1.5rem;
}

.field:last-child {
    margin-bottom: 0;
}

.field > label {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--ice);
}

/* Custom Select */
select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237a8ca0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

select:focus {
    outline: none;
    border-color: var(--ice);
    box-shadow: 0 0 0 3px var(--ice-glow);
}

select option {
    background: var(--bg-surface);
    color: var(--text);
    padding: 0.5rem;
}

/* Alarm Checkboxes */
.checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.checkboxes label:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
}

.checkboxes label:has(input:checked) {
    border-color: var(--ice);
    background: var(--ice-glow);
}

.checkboxes input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ice);
    cursor: pointer;
}

/* Alarm Warning */
.alarm-warning {
    margin-top: 1.25rem;
    padding: 0.875rem 1rem;
    background: var(--ice-glow);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-dim);
}

/* Subscribe Section */
.subscribe {
    text-align: center;
    margin-bottom: 2.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--warmth);
    color: #fff;
    padding: 1rem 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.25s;
    box-shadow: 0 4px 24px var(--warmth-glow);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '📅';
    font-size: 1.1rem;
}

.button:hover {
    background: #ff7d4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(255, 107, 53, 0.35);
}

.button:active {
    transform: translateY(0);
}

.hint {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Instructions Section */
.instructions {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.instructions h2 {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--text);
    text-transform: uppercase;
}

details {
    border-top: 1px solid var(--border);
}

details:first-of-type {
    border-top: none;
}

summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 1rem 0;
    color: var(--text);
    transition: color 0.2s;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--ice);
    border-bottom: 2px solid var(--ice);
    transform: rotate(-45deg);
    transition: transform 0.2s;
}

details[open] summary::before {
    transform: rotate(45deg);
}

summary:hover {
    color: var(--ice);
}

details ol {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-dim);
}

details li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

details a {
    color: var(--ice);
    text-decoration: none;
}

details a:hover {
    text-decoration: underline;
}

/* Copy URL Section */
.copy-link {
    margin: 1rem 0;
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.copy-link code {
    flex: 1;
    background: var(--bg-surface);
    padding: 0.75rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
    word-break: break-all;
    border: none;
}

.copy-btn {
    background: var(--ice-dim);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--ice);
}

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

footer p {
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.8;
}

footer a {
    color: var(--ice);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Animations */
@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.selector::before {
    animation: glow-pulse 3s ease-in-out infinite;
}

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

    h1 {
        font-size: 3rem;
    }

    .checkboxes {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .copy-link {
        flex-direction: column;
    }

    .copy-link code {
        border-radius: 0;
    }

    .copy-btn {
        border-radius: 0;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--ice);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
