:root {
    --bg-color: #050505;
    --text-color: #00ff00;
    --accent-color: #008800;
    --card-bg: #111;
    --metal-grey: #222;
    --error-red: #ff0000;
    --font-stack: 'Courier New', Courier, monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
}

a:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

button {
    background: var(--metal-grey);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 10px 20px;
    font-family: var(--font-stack);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

button:hover {
    background: var(--text-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--text-color);
}

input,
select,
textarea {
    background: #000;
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    padding: 8px;
    font-family: var(--font-stack);
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #111;
    border-bottom: 2px solid var(--text-color);
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Notifications */
#notif-container {
    display: inline-block;
    position: relative;
    margin-right: 15px;
    cursor: pointer;
}

#notif-icon {
    font-size: 1.2rem;
    color: var(--metal-grey); /* Default (read) */
    transition: color 0.3s;
}

#notif-icon.unread {
    color: #ff0000; /* Alert Red */
    text-shadow: 0 0 5px #ff0000;
    animation: pulse-danger 1s infinite alternate;
}

@keyframes pulse-danger {
    from { text-shadow: 0 0 2px #ff0000; }
    to { text-shadow: 0 0 10px #ff0000; }
}

#notif-dropdown {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    width: 300px;
    background: #000;
    border: 2px solid var(--text-color);
    box-shadow: 0 0 15px var(--accent-color);
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    padding: 10px;
    border-bottom: 1px solid var(--metal-grey);
    font-size: 0.85rem;
    transition: background 0.2s;
}

.notif-item:hover {
    background: var(--metal-grey);
}

.notif-item.unread {
    border-left: 3px solid #ff0000;
    background: #050505;
}

.notif-time {
    font-size: 0.7rem;
    color: #666;
    display: block;
    margin-top: 3px;
}


/* Login Screen - DVD Animation */
#login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dvd-logo {
    position: absolute;
    font-size: 8rem;
    color: var(--text-color);
    font-weight: bold;
    animation: spin 5s linear infinite;
    user-select: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg) scale(0.5);
    }

    50% {
        transform: rotate(180deg) scale(1.5);
    }

    to {
        transform: rotate(360deg) scale(0.5);
    }
}

.login-form-box {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--text-color);
    padding: 2rem;
    z-index: 2001;
    min-width: 300px;
    text-align: center;
}

/* Feed */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--metal-grey);
    margin-bottom: 20px;
    padding: 15px;
    display: flex;
    gap: 15px;
}

.vote-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 40px;
}

.vote-btn {
    padding: 5px;
    background: none;
    border: none;
    font-size: 1.5rem;
}

.vote-btn:hover {
    text-shadow: 0 0 5px var(--text-color);
}

.score {
    font-size: 1.2rem;
    font-weight: bold;
}

.post-content {
    flex-grow: 1;
}

.post-header {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: block;
}

.post-media {
    max-width: 100%;
    max-height: 500px;
    border: 1px solid var(--metal-grey);
    margin-top: 10px;
}

/* Upload Preview */
#preview-container {
    margin-top: 10px;
}

#preview-media {
    max-width: 200px;
}

/* Admin Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    border: 1px solid var(--metal-grey);
    padding: 10px;
    text-align: left;
}

th {
    background: var(--metal-grey);
}

/* Profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border: 2px solid var(--text-color);
    object-fit: cover;
}

/* Casino */
.game-area {
    border: 1px solid var(--text-color);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.coin-large {
    font-size: 3rem;
    margin: 20px;
}

/* Floating Action Button */
.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #000;
    border: 2px solid #0f0;
    border-radius: 50%;
    color: #0f0;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 10px #0f0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.fab-btn:hover {
    background-color: #0f0;
    color: #000;
    box-shadow: 0 0 20px #0f0;
    transform: scale(1.1);
}

.fab-tooltip {
    position: absolute;
    right: 70px;
    background: #000;
    border: 1px solid #0f0;
    padding: 5px 10px;
    color: #0f0;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.fab-btn:hover .fab-tooltip {
    opacity: 1;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #000;
    border: 2px solid #0f0;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 20px #0f0;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #0f0;
    font-size: 20px;
    color: #0f0;
    font-size: 20px;
    cursor: pointer;
}

/* Nested Comments */
.comment-card {
    border-left: 2px solid #004400;
    margin-bottom: 10px;
    background: #000;
}

.nested-comments {
    margin-left: 20px;
    margin-top: 10px;
    border-left: 2px solid #0f0;
    padding-left: 10px;
}

.reply-btn {
    background: none;
    border: none;
    color: #0f0;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
}


.reply-btn:hover {
    color: #fff;
}

#status-message {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #0f0;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    z-index: 9999;
    display: none;
    /* Hidden by default */
}

/* Stream Overlays */
.stream-overlay-container {
    position: absolute;
    top: 50px;
    left: 20px;
    right: 20px;
    pointer-events: none;
    /* Let clicks pass through to video/controls */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.overlay-message {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f0;
    text-shadow: 0 0 5px #000;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border: 1px solid #0f0;
    border-radius: 5px;
    text-align: center;
    opacity: 1;
    animation: fadeOut 3s forwards;
}

.overlay-tip {
    font-size: 2rem;
    color: #ffff00;
    /* Yellow for tips */
    border-color: #ffff00;
    animation: shake 0.5s ease-in-out, fadeOut 4s 1s forwards;
    /* Shake then fade after 1s delay */
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

/* TV Stream Standardization */
.feed-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.stream-card {
    width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stream-thumb {
    width: 100%;
    height: 170px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--metal-grey);
}

.stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ff0000;
    color: #fff;
    padding: 2px 5px;
    font-size: 0.8rem;
    font-weight: bold;
}
