/* Base Styles */
:root {
    --vhs-black: #000000;
    --vhs-white: #ffffff;
    --vhs-red: #ff0033;
    --vhs-blue: #0077cc;
    --vhs-purple: #9933cc;
    --neon-glow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ff00de, 0 0 20px #ff00de;
}

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

body {
    background: var(--vhs-black);
    color: var(--vhs-white);
    font-family: 'VCR OSD Mono', 'Courier New', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Create a CRT screen effect container */
#vhs-container {
min-height: 100vh;
position: relative;
padding-bottom: 60px; /* Footer space */
}

/* Custom Fonts */
@font-face {
    font-family: 'VCR OSD Mono';
    src: url('../assets/fonts/VCR_OSD_MONO.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Typography */
h1, h2, h3, h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    padding: 1rem 0;
}

h2 {
    font-size: 2rem;
    color: var(--vhs-red);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--vhs-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: var(--neon-glow);
}

/* Header & Navigation */
header {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1rem;
    letter-spacing: 5px;
    margin-top: -0.5rem;
    color: var(--vhs-red);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    padding: 0.5rem 1rem;
    display: inline-block;
    border: 1px solid transparent;
}

nav ul li a:hover, nav ul li a.active {
    border: 1px solid var(--vhs-white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Main Content Areas */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    margin: 3rem 0;
    position: relative;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.crt-screen {
    border: 10px solid #333;
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.9) 100%);
}

.welcome-message {
    position: relative;
    z-index: 5;
    max-width: 700px;
    margin: 0 auto;
}

.welcome-message p {
    font-size: 1.2rem;
    margin: 1.5rem 0;
}

/* VHS Button */
.vhs-button {
    background: var(--vhs-red);
    color: var(--vhs-white);
    border: none;
    padding: 1rem 2rem;
    font-family: 'VCR OSD Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.vhs-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.7);
}

.vhs-button:before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.vhs-button:hover:before {
    transform: translateY(0);
}

/* Featured Tapes Section */
.featured-tapes {
    text-align: center;
}

.tape-shelf {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.vhs-tape {
    width: 250px;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.vhs-tape:hover .tape-cover {
    transform: rotateY(180deg);
}

.tape-spine, .tape-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.tape-spine {
    background: var(--vhs-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    writing-mode: vertical-lr;
    transform: rotateY(180deg);
    border-left: 3px solid #333;
}

.tape-cover {
    background: #333;
    border: 2px solid #555;
    padding: 10px;
    position: relative;
}

.tape-cover img {
    width: 100%;
    height: calc(100% - 40px);
    object-fit: cover;
    object-position: center;
    border: 1px solid #666;
}

.tape-label {
    background: white;
    color: black;
    padding: 5px;
    font-family: 'Permanent Marker', cursive;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Be Kind Rewind Section */
.be-kind {
    text-align: center;
    padding: 2rem 0;
}

.sticker {
    display: inline-block;
    background: var(--vhs-red);
    color: var(--vhs-white);
    padding: 1rem 2rem;
    border-radius: 10px;
    transform: rotate(-5deg);
    font-family: 'Permanent Marker', cursive;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    position: relative;
}

.sticker:after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    z-index: -1;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 0.8rem;
}

.counter {
    font-family: 'Digital-7', monospace;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.3rem 0.5rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 3px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .tape-shelf {
        flex-direction: column;
        align-items: center;
    }

    .vhs-tape {
        width: 200px;
        height: 300px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

/* History Page Specific Styles */

/* Timeline Section */
.history-intro {
    padding: 2rem 0;
}

.vhs-timeline {
    position: relative;
    margin: 3rem 0;
    padding: 1rem;
}

.vhs-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--vhs-red);
    z-index: 1;
}

.timeline-container {
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--vhs-black);
    border: 2px solid var(--vhs-red);
    color: var(--vhs-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    z-index: 2;
    font-weight: bold;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    margin-top: 2rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--vhs-red);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-content:before {
    left: -10px;
}

.timeline-item:nth-child(even) .timeline-content:before {
    right: -10px;
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--vhs-red);
}

.timeline-image {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid #555;
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.timeline-image img:hover {
    transform: scale(1.05);
}

/* VHS Stats Section */
.vhs-stats {
    text-align: center;
    padding: 2rem 0;
}

.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-box {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #444;
    padding: 2rem;
    width: 250px;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--vhs-red);
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--vhs-white);
}

/* Responsive adjustments for timeline */
@media (max-width: 768px) {
    .vhs-timeline:before {
        left: 20px;
    }

    .timeline-date {
        left: 20px;
        transform: translateX(0);
    }

    .timeline-content {
        width: 80%;
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    .timeline-item:nth-child(odd) .timeline-content:before,
    .timeline-item:nth-child(even) .timeline-content:before {
        left: -10px;
        right: auto;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
    }
}
