/* GoreWatch - Professional Design */

:root {
    --bg: #0a0a0a;
    --bg2: #111;
    --bg3: #181818;
    --text: #fff;
    --muted: #888;
    --border: rgba(220, 38, 38, 0.2);
    --border-light: rgba(220, 38, 38, 0.08);
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --accent-glow: rgba(220, 38, 38, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bg3);
    border-radius: 3px;
}

/* Animated Background Blobs */
.blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.blob:nth-child(1) {
    width: 500px;
    height: 500px;
    background: rgba(220, 38, 38, 0.08);
    top: 10%;
    left: 10%;
}

.blob:nth-child(2) {
    width: 400px;
    height: 400px;
    background: rgba(185, 28, 28, 0.06);
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.blob:nth-child(3) {
    width: 600px;
    height: 600px;
    background: rgba(220, 38, 38, 0.04);
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    height: 56px;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: auto;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    margin-right: 28px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Language Switcher */
.lang-toggle {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--muted);
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    background: var(--accent);
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.78rem;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 0.95rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 10;
}

main {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

/* Age Gate */
.age-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.age-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 48px 40px;
    max-width: 560px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.age-logo-container {
    margin-bottom: 32px;
}

.age-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
}

.age-logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.age-logo-text span {
    color: var(--accent);
}

.age-box h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--accent);
}

.age-box p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

.age-box strong {
    color: var(--text);
}

.age-question {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 32px 0 24px;
    color: var(--text);
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-yes {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 12px 32px;
    font-size: 0.9rem;
}

.btn-yes:hover {
    background: rgba(34, 197, 94, 0.25);
}

.btn-no {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ff6b6b;
    padding: 12px 32px;
    font-size: 0.9rem;
}

.btn-no:hover {
    background: rgba(220, 38, 38, 0.25);
}

.lang-box {
    position: absolute;
    top: 24px;
    right: 24px;
}

/* Forms */
.form-container {
    max-width: 440px;
    margin: 60px auto;
    padding: 40px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.form-container h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--accent);
}

.form-input::placeholder {
    color: #444;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Alerts */
.alert {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.alert-error,
.error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ff6b6b;
}

.alert-success,
.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* Video Grid */
.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-sub {
    color: var(--muted);
    font-size: 0.9rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.video-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

.video-card:hover {
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

.video-thumbnail {
    width: 100%;
    height: 160px;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
}

.video-info {
    padding: 14px;
}

.video-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--muted);
}

/* Video Player Page */
.video-player-container {
    max-width: 1200px;
    margin: 0 auto;
}

.video-player {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-player video {
    width: 100%;
    max-height: 70vh;
    display: block;
}

.video-details {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.video-details h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.video-stats {
    display: flex;
    gap: 20px;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.video-description {
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border-light);
    padding: 32px 0;
    margin-top: 80px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    color: #444;
    font-size: 0.78rem;
}

/* Loading State */
.loading-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    nav {
        padding: 0 16px;
        flex-wrap: wrap;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 12px;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    .logo {
        margin-right: 0;
        order: 1;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        order: 5;
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 8px;
        margin-top: 8px;
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        height: auto;
        padding: 10px 12px;
        border-bottom: none;
        border-radius: 4px;
        font-size: 0.85rem;
    }
    
    .nav-link.active {
        background: var(--accent-glow);
        border-bottom: none;
    }
    
    .header-right {
        margin-left: auto;
        order: 2;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .user-pill {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .lang-toggle {
        order: 4;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .video-card {
        margin-bottom: 0;
    }
    
    .video-thumbnail {
        height: 200px;
    }

    .section-title {
        font-size: 1.4rem;
    }
    
    .section-sub {
        font-size: 0.85rem;
    }

    .form-container {
        padding: 28px 20px;
        margin: 40px auto;
    }
    
    .form-container h1 {
        font-size: 1.5rem;
    }

    .age-box {
        padding: 32px 20px;
        max-width: 90%;
    }
    
    .age-logo-img {
        width: 60px;
        height: 60px;
    }
    
    .age-logo-text {
        font-size: 1.4rem;
    }
    
    .age-box h1 {
        font-size: 1.2rem;
    }
    
    .age-box p {
        font-size: 0.9rem;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-yes,
    .btn-no {
        width: 100%;
        padding: 14px 24px;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 7px 14px;
    }
    
    .btn-sm {
        padding: 5px 10px;
        font-size: 0.72rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    main {
        padding-top: 100px;
    }
    
    .video-player video {
        max-height: 50vh;
    }
    
    .video-player-container {
        padding: 0 16px;
    }
    
    .video-details {
        padding: 20px;
    }
    
    .video-details h1 {
        font-size: 1.2rem;
    }
    
    .video-stats {
        flex-direction: column;
        gap: 8px;
        font-size: 0.8rem;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .blob:nth-child(1) {
        width: 300px;
        height: 300px;
    }
    
    .blob:nth-child(2) {
        width: 250px;
        height: 250px;
    }
    
    .blob:nth-child(3) {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0 12px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-text span {
        display: inline;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .form-container {
        padding: 24px 16px;
    }
    
    .age-box {
        padding: 24px 16px;
    }
    
    .age-logo-text {
        font-size: 1.2rem;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}
