:root {
    --twitch-purple: #9146FF;
    --twitch-dark: #18181B;
    --twitch-light: #efeff1;
    --twitch-accent: #bf94ff;
    --twitch-hover-purple: #a07af0;
    --background-dark: #0e0e10;
    --text-color: #efeff1;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    background-color: var(--background-dark);
    color: var(--text-color);
    min-height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: var(--twitch-dark);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--twitch-purple);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-container span {
    background: linear-gradient(45deg, var(--twitch-purple), var(--twitch-accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 3s ease infinite;
    text-shadow: 0 0 10px rgba(145, 70, 255, 0.3);
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.karthas-icon {
    height: 24px;
    width: auto;
}

.stream-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.stream-icons a {
    color: #808080;
    transition: all 0.3s ease;
    cursor: pointer;
}

.twitch-icon:hover {
    color: var(--twitch-accent);
}

.kick-image, .discord-icon img {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.8);
    object-fit: contain;
}

.kick-icon:hover .kick-image,
.discord-icon:hover img {
    filter: none;
    transform: scale(1.1);
}

main {
    flex: 1;
    margin: 2rem auto;
    padding: 0 50px;
    width: 100%;
}

.schedule-container {
    width: calc(100% - 100px);
    margin: 0 auto;
    background: var(--twitch-dark);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 2rem;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.nav-btn {
    background: var(--twitch-purple);
    border: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn:not([disabled]) {
    opacity: 1;
    cursor: pointer;
}

.nav-btn:not([disabled]):hover {
    background: var(--twitch-hover-purple);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer {
    color: var(--twitch-accent);
    font-style: italic;
    font-size: 0.9rem;
}

.last-modified {
    background: rgba(145, 70, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: var(--twitch-accent);
    position: relative;
    overflow: hidden;
}

.last-modified::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(145, 70, 255, 0.1),
        transparent
    );
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.day-separator {
    border-bottom: 2px solid var(--twitch-purple);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--twitch-accent);
    font-size: 1.4rem;
    text-align: left;
}

.event-item {
    padding: 1.5rem;
    border-left: 4px solid var(--twitch-purple);
    margin-bottom: 1rem;
    background: rgba(145, 70, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(145, 70, 255, 0.2);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--twitch-accent);
}

.error {
    text-align: center;
    padding: 2rem;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 5px;
}

.live-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

footer {
    background: var(--twitch-dark);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer img {
    max-width: 100%;
    height: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
}

footer img:hover {
    opacity: 1;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .stream-icons {
        margin-top: 0.5rem;
    }

    main {
        padding: 0 20px;
    }

    .schedule-container {
        width: calc(100% - 40px);
        padding: 1.5rem;
    }

    .status-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .last-modified {
        width: 100%;
    }
}