﻿/* Twitch Player Specific Styles - Strict Reset */
.player-only,
.player-only * {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

html:has(body.player-only),
body.player-only {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background-color: #000 !important;
}

#twitch-embed {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.live-page {
    overflow: auto !important;
    padding: 0;
}

.live-content {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 95px 20px 20px;
}

.twitch-live-badge {
    display: inline-block;
    flex: 0 0 0.65rem;
    width: 0.65rem;
    height: 0.65rem;
    min-width: 0.65rem;
    min-height: 0.65rem;
    border-radius: 50%;
    background-color: #e91916;
    box-shadow: 0 0 0 3px rgba(233, 25, 22, 0.2);
}

.twitch-live-badge[hidden] {
    display: none !important;
}

.twitch-player-shell {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
}

.twitch-live-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.twitch-stream-info {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #212121;
    border-left: 4px solid #d946ef;
    color: #fff;
    font-family: sans-serif;
}

.twitch-live-label {
    margin: 0 0 0.35rem;
    color: #e91916;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.twitch-stream-info h1 {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: 1.4rem;
}

.twitch-stream-info dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.twitch-stream-info dt {
    color: #b3b3b3;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.twitch-stream-info dd {
    margin: 0.2rem 0 0;
}

.twitch-tags {
    margin: 1rem 0 0;
    color: #b3b3b3;
    font-size: 0.9rem;
}

.twitch-status-message {
    color: #fff;
    font: 1.2rem sans-serif;
    text-align: center;
}

@media (max-width: 640px) {
    .twitch-stream-info dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Ensure the Twitch iframe stays at the top */
#twitch-embed iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.twitch-error {
    color: white;
    text-align: center;
    padding-top: 100px;
    font-family: sans-serif;
}

/* Floating button */
.twitch-floating-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(112, 22, 196, 0.85); /* Dark purple theme matching FaerieSeraphina accent */
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.2s, opacity 0.8s;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.twitch-floating-btn:hover {
    background-color: #8a2be2;
}

.twitch-floating-btn.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Modal styles for login instructions */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-modal.hidden {
    display: none !important;
}

.login-modal-content {
    background-color: #2b2b2b;
    border: 2px solid #7016C4;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    padding: 24px;
    color: #fff;
    font-family: sans-serif;
    box-shadow: 0 0 20px rgba(112, 22, 196, 0.4);
    box-sizing: border-box;
}

.login-modal-content * {
    margin: unset !important;
    padding: unset !important;
}

.login-modal-content h2 {
    color: #d946ef;
    margin-bottom: 16px !important;
    font-size: 1.4rem;
    border-bottom: 2px solid #333;
    padding-bottom: 8px !important;
}

.login-modal-content p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #b3b3b3;
    margin-bottom: 16px !important;
}

.login-modal-content ol {
    margin-left: 20px !important;
    margin-bottom: 24px !important;
    font-size: 0.9rem;
    color: #ddd;
    list-style-type: decimal !important;
}

.login-modal-content li {
    margin-bottom: 12px !important;
    line-height: 1.4;
    display: list-item !important;
}

.login-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary {
    padding: 10px 16px !important;
    font-size: 0.9rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: sans-serif;
}

.btn-primary {
    background-color: #7016C4;
    color: white;
}

.btn-primary:hover {
    background-color: #8a2be2;
}

.btn-secondary {
    background-color: #444;
    color: #ccc;
}

.btn-secondary:hover {
    background-color: #555;
    color: white;
}

.twitch-view-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 1rem;
    width: 100%;
    align-items: stretch;
}

.twitch-chat-shell {
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.twitch-chat-shell iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 0;
}

@media (max-width: 900px) {
    .twitch-view-layout {
        grid-template-columns: 1fr;
    }

    .twitch-chat-shell iframe {
        height: 500px;
        min-height: 500px;
    }
}

@media (max-width: 640px) {
    .live-content {
        padding: 75px 10px 10px;
    }

    .twitch-stream-info dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .twitch-chat-shell iframe {
        height: 450px;
        min-height: 450px;
    }
}