/* Video Release Collective - Shared Styles */
/* Black/White Theme - Old School TV Style */

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

body {
    font-family: 'Share Tech Mono', monospace;
    background: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* CRT Screen Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

/* TV Frame */
.tv-frame {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 20px;
    padding: 30px;
    border: 8px solid #333;
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.1),
        inset 0 0 30px rgba(0, 0, 0, 0.8),
        0 0 0 2px #222;
    position: relative;
    overflow: hidden;
}

.tv-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tv-screen {
    background: #000;
    border: 4px solid #222;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Static Noise Overlay */
.static-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        );
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

/* Header */
.tv-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.scan-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    margin: 10px 0;
    opacity: 0.7;
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 20px 0;
    position: relative;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #00ffff;
}

.title.glitch {
    position: relative;
}

.title.glitch::before,
.title.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.title.glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    color: #ff00ff;
    z-index: -1;
}

.title.glitch::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch-1 {
    0% { clip-path: inset(40% 0 61% 0); }
    5% { clip-path: inset(92% 0 1% 0); }
    10% { clip-path: inset(43% 0 1% 0); }
    15% { clip-path: inset(25% 0 58% 0); }
    20% { clip-path: inset(54% 0 7% 0); }
    100% { clip-path: inset(58% 0 43% 0); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(25% 0 58% 0); }
    5% { clip-path: inset(54% 0 7% 0); }
    10% { clip-path: inset(30% 0 1% 0); }
    15% { clip-path: inset(80% 0 5% 0); }
    20% { clip-path: inset(2% 0 60% 0); }
    100% { clip-path: inset(80% 0 1% 0); }
}

.subtitle {
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-top: 10px;
}

/* Navigation */
.tv-nav {
    margin-bottom: 30px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.nav-item {
    background: #111;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #888;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    border-color: #00ffff;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.nav-item.active {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
    color: #fff;
}

.nav-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #00ffff;
}

.nav-label {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-status {
    font-size: 0.8rem;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.nav-item.active .nav-status {
    background: rgba(0, 255, 0, 0.2);
}

/* Page Content */
.page-content {
    min-height: 400px;
    position: relative;
    z-index: 2;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #00ffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff0000;
}

.status-dot.online {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 2s infinite;
}

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

.status-text {
    font-size: 0.9rem;
    color: #888;
}

/* Footer */
.tv-footer {
    margin-top: 30px;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #333, transparent);
    margin: 10px 0;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    padding: 5px 0;
}

.footer-item {
    padding: 0 10px;
}

/* TV Controls */
.tv-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.control-knob {
    text-align: center;
}

.knob-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.knob {
    width: 30px;
    height: 30px;
    background: #222;
    border: 2px solid #333;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
}

.knob::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: #00ffff;
}

.power-button {
    text-align: center;
}

.power-light {
    width: 15px;
    height: 15px;
    background: #ff0000;
    border-radius: 50%;
    margin: 0 auto 5px;
    box-shadow: 0 0 10px #ff0000;
}

.power-label {
    font-size: 0.8rem;
    color: #888;
}

/* TV Brand */
.tv-brand {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.brand-text {
    display: block;
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.model-text {
    display: block;
    font-size: 0.7rem;
    color: #555;
    letter-spacing: 1px;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: #111;
    border: 2px solid #00ffff;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
}

.modal-header {
    background: #000;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #00ffff;
    font-size: 1.2rem;
}

.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #ff0000;
}

.modal-body {
    padding: 20px;
}

/* Common Components */
.tv-button {
    background: #000;
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    white-space: nowrap;
}

.tv-button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.tv-button .button-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
}

.button-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    animation: blink 1s infinite;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Request Modal Styles */
.request-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.request-instruction {
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 10px;
}

.request-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 100%;
    overflow: hidden;
}

.request-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 5px;
}

.request-note {
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
    margin-top: 10px;
}

.request-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.request-actions .tv-button {
    max-width: 200px;
}

/* Header Request Button */
.header-request-btn {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid #ffa500;
    color: #ffa500;
    padding: 8px 15px;
    border-radius: 5px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
}

.header-request-btn:hover {
    background: rgba(255, 165, 0, 0.2);
    border-color: #ffcc00;
    color: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
    text-decoration: none;
}