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

body {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    min-height: 100vh;
    font-family: 'Courier New', monospace;
    color: #e0e0e0;
    overflow-x: hidden;
}

.main-content {
    padding-top: 80px; /* Account for fixed navbar */
    min-height: calc(100vh - 160px);
}

/* Navigation Styles */
.navbar-brand.neon-text {
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    animation: flicker 5s infinite alternate;
}

.navbar-dark .navbar-nav .nav-link {
    color: #e0e0e0 !important;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ff00ff !important;
    text-shadow: 0 0 5px #ff00ff;
}

/* TV Page Styles */
.tv-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: calc(100vh - 160px);
}

.title {
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 2.8rem;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    animation: flicker 5s infinite alternate;
}

.links-bar {
    color: #aaaaaa;
    letter-spacing: 2px;
    font-size: 1rem;
}

.links-bar a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.links-bar a:hover {
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

.tv-container {
    position: relative;
    width: 900px;
    max-width: 90vw;
    margin: 0 auto;
    perspective: 1000px;
}

.tv-body {
    background: linear-gradient(to bottom, #333 0%, #111 100%);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 3px solid #222;
    transform: rotateX(5deg);
}

.tv-screen-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
    aspect-ratio: 4/3;
}

.vhs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, 
            rgba(0, 0, 0, 0.15), 
            rgba(0, 0, 0, 0.15) 1px, 
            transparent 1px, 
            transparent 2px),
        repeating-linear-gradient(90deg, 
            rgba(0, 0, 0, 0.15), 
            rgba(0, 0, 0, 0.15) 1px, 
            transparent 1px, 
            transparent 2px);
    mix-blend-mode: overlay;
    z-index: 3;
    pointer-events: none;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 4;
    pointer-events: none;
    animation: scanline 6s linear infinite;
}

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.7);
    z-index: 2;
    pointer-events: none;
    border-radius: 8px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    filter: sepia(0.3) contrast(1.2) brightness(0.9) saturate(0.8) hue-rotate(-5deg);
    transform: scale(1.01);
    transition: filter 0.3s ease;
}

.video-container:hover {
    filter: sepia(0.3) contrast(1.3) brightness(0.95) saturate(1) hue-rotate(-5deg);
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.tv-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.control-btn {
    background: #444;
    border: 2px solid #222;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffcc00;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.control-btn:hover {
    background: #555;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.control-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.power-btn {
    background: linear-gradient(to bottom, #ff3333, #cc0000);
}

.power-btn.on {
    background: linear-gradient(to bottom, #33cc33, #009900);
}

.antenna {
    position: absolute;
    top: -80px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    z-index: -1;
}

.antenna-left, .antenna-right {
    width: 6px;
    height: 80px;
    background: linear-gradient(to right, #777, #aaa, #777);
    position: relative;
    border-radius: 3px 3px 0 0;
}

.antenna-left::after, .antenna-right::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: #555;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.tv-stand {
    width: 300px;
    height: 20px;
    background: linear-gradient(to bottom, #222, #111);
    margin: 0 auto;
    position: relative;
    top: -10px;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.static-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s;
}

.static-overlay.active {
    opacity: 0.2;
}

.distortion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.3) 100%);
    z-index: 4;
    pointer-events: none;
    animation: distortion 8s infinite;
    opacity: 0.1;
}

.brand {
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: #ffcc00;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.player-state {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 10;
    display: none;
}

/* Social Page Styles */
.social-page {
    padding: 20px 0;
}

.social-widget {
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    border: 2px solid #333;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.featured-widget {
    border: 2px solid #ff00ff;
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
}

.featured-widget:hover {
    box-shadow: 0 15px 40px rgba(255, 0, 255, 0.5);
}

.widget-title {
    background: linear-gradient(45deg, #ff00ff, #ffcc00);
    color: #000;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.3rem;
    text-align: center;
    font-weight: bold;
}

.widget-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 60px);
}

.widget-content iframe {
    border-radius: 8px;
    flex-grow: 1;
}

.widget-footer {
    text-align: center;
    margin-top: 15px;
}

.widget-footer .btn {
    background: transparent;
    border: 2px solid #ffcc00;
    color: #ffcc00;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.widget-footer .btn:hover {
    background: #ffcc00;
    color: #000;
    transform: scale(1.05);
}

/* Purchase Grid Styles */
.purchase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px 0;
}

@media (min-width: 768px) {
    .purchase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .purchase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.purchase-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: linear-gradient(135deg, #333, #1a1a1a);
    border: 2px solid #555;
    border-radius: 10px;
    color: #ffcc00;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 80px;
}

.purchase-btn:hover {
    background: linear-gradient(135deg, #555, #333);
    border-color: #ffcc00;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.purchase-btn i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.purchase-btn span {
    font-size: 0.9rem;
    font-weight: bold;
}

/* Social Platform Placeholder Styles */
.instagram-placeholder, 
.tiktok-placeholder, 
.twitter-placeholder, 
.facebook-placeholder, 
.threads-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 10px;
}

.purchase-options {
    border-top: 1px solid #444;
    padding-top: 15px;
}

/* Footer Styles */
.footer {
    background: #111 !important;
    border-top: 2px solid #333;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.social-link {
    color: #ffcc00;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    color: #ff00ff;
    border-color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

/* Animations */
@keyframes scanline {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    }
    20%, 24%, 55% {
        opacity: 0.8;
        text-shadow: none;
    }
}

@keyframes distortion {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .antenna {
        display: none;
    }
    
    .links-bar {
        font-size: 0.8rem;
    }
    
    .social-widget {
        margin-bottom: 20px;
    }
    
    .main-content {
        padding-top: 60px;
    }
}

@media (max-width: 576px) {
    .tv-container {
        width: 95vw;
    }
    
    .tv-body {
        padding: 20px;
    }
    
    .title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .tv-controls {
        gap: 10px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}
