:root {
    --bg: #050505;
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-muted: #666;
    --accent: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    user-select: none;
}

body {
    background-color: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    overflow: hidden;
    position: relative;
}

#stars-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 4rem;
    transition:
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
    z-index: 100;
    padding: 10px;
    border-radius: 12px;
    position: relative;
}

.nav-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.nav-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 6px;
    color: var(--accent);
}

.nav-btn:active {
    color: var(--accent);
    transform: scale(0.96);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-btn.is-active {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 0 24px rgba(255, 255, 255, 0.08);
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 10;
}

.github-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    opacity: 0.6;
    transition:
        opacity 0.2s ease,
        color 0.2s ease;
    z-index: 10;
    font-weight: 400;
}

.github-link:hover {
    opacity: 1;
    color: var(--accent);
}

.schedule-shell {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.view-port {
    position: relative;
    width: 100%;
    height: 700px;
    perspective: 1200px;
    touch-action: pan-y;
}

.view-port__cards {
    position: absolute;
    inset: 0;
}

.day-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 2rem;
    padding-bottom: 2.5rem;
    border-radius: 24px;
    display: none;
    flex-direction: column;
}

.day-card.active {
    display: flex;
}

.card-header {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    color: var(--accent);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    min-height: 0;
}

.class-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.class-item:last-child {
    border: none;
}

.class-time {
    position: absolute;
    left: 0;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.class-name {
    font-size: 1.8rem;
    text-align: center;
    color: var(--text-muted);
    letter-spacing: 2px;
    line-height: 1.2;
}

.tech {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.interval-item {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 8px 0;
}

.interval-text {
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: #555;
    letter-spacing: 3px;
}

/* Dots — visíveis apenas no mobile, sobrepostos à base do card */
.day-dots {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    z-index: 30;
    justify-content: center;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.day-dots button {
    pointer-events: auto;
}

.day-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.day-dot:hover,
.day-dot:focus-visible {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.15);
}

.day-dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 3px;
}

.day-dot[aria-current='true'] {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }

    .card-header {
        font-size: 1.8rem;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }

    .class-name {
        font-size: 1.4rem;
    }

    .class-time {
        font-size: 0.9rem;
    }

    .view-port {
        height: 600px;
    }

    body {
        padding: 0 5vw;
    }

    .day-card {
        background: rgba(22, 22, 22, 0.95);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    }

    .day-dots {
        display: flex;
    }
}
