/* style.css - FitGuide Netflix-Inspired Cinematic Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --netflix-red: #e50914;
    --netflix-black: #141414;
    --netflix-dark-gray: #181818;
    --netflix-light-gray: #2f2f2f;
    --text-white: #ffffff;
    --text-muted: #b3b3b3;
    --bg-dark: #000000;
    --card-radius: 4px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    background-color: var(--netflix-black);
    color: var(--text-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--netflix-black);
}
::-webkit-scrollbar-thumb {
    background: var(--netflix-light-gray);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Page Transitions */
.page {
    display: none;
    animation: fadeIn 0.6s ease;
}

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

.page.active {
    display: block;
}

/* Navigation */
.netflix-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--netflix-black);
    transition: background 0.3s;
    border-bottom: 1px solid var(--netflix-light-gray);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.logo {
    color: var(--netflix-red);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 1.2rem;
}

.main-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--text-muted);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.filter-dropdowns {
    display: flex;
    gap: 0.8rem;
}

.filter-dropdowns select {
    background-color: rgba(0,0,0,0.75);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 2px;
    cursor: pointer;
}

.avatar {
    width: 32px;
    height: 32px;
    background: #e50914;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.avatar svg {
    width: 22px;
    height: 22px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 4%;
    margin-bottom: -5rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    z-index: -2;
    transition: background-image 0.8s ease-in-out;
}

.hero-content h1, .hero-content p {
    transition: opacity 0.5s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, transparent 100%),
                linear-gradient(to top, var(--netflix-black) 0%, transparent 30%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    color: #46d369;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1rem;
    color: white;
    margin-bottom: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 450px;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-play, .btn-info {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.btn-play {
    background-color: white;
    color: black;
}

.btn-play:hover {
    background-color: rgba(255,255,255,0.75);
}

.btn-info {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
}

.btn-info:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

.btn-play svg, .btn-info svg {
    width: 24px;
    height: 24px;
}

/* Video Rows */
.video-rows-container {
    position: relative;
    z-index: 20;
    padding: 2rem 0;
}

.content-row {
    margin-bottom: 3rem;
    padding-left: 4%;
}

.content-row h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #e5e5e5;
}

.row-rail {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
}

.row-rail::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Video Cards */
.video-card {
    flex: 0 0 250px;
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
    background-color: var(--netflix-dark-gray);
    aspect-ratio: 16/9;
}

.video-card:hover {
    transform: scale(1.15);
    z-index: 100;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

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

.video-card:hover .card-img {
    transform: scale(1.1);
}

.premium-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #ffcc00; /* Yellow color */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    z-index: 5;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
}

.premium-overlay h2 {
    color: var(--netflix-red);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.premium-overlay p {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.premium-btn {
    background-color: var(--netflix-red);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.premium-btn:hover {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .card-overlay {
    opacity: 1;
}

.card-title {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.card-diff {
    color: #46d369;
    font-weight: 800;
}

/* Detail Page */
.detail-hero {
    position: relative;
    width: 100%;
    background-color: black;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-player-container.cinematic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.detail-back-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.detail-back-btn:hover {
    background: rgba(255,255,255,0.2);
}

.detail-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 4%;
}

.detail-main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
}

.video-info-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.video-info-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
}

.video-info-meta .match {
    color: #46d369;
}

.video-actions-bar {
    display: flex;
    gap: 1rem;
}

.action-btn-pill {
    background: rgba(109, 109, 110, 0.7);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn-pill:hover {
    background: rgba(109, 109, 110, 0.4);
}

.detail-grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

/* Guide Panel */
.guide-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.guide-block {
    background-color: var(--netflix-dark-gray);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--netflix-red);
}

.guide-block h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.guide-block p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.warning-block {
    border-left-color: #e50914;
    background-color: rgba(229, 9, 20, 0.05);
}

.advice-block {
    border-left-color: #46d369;
}

/* Community Panel */
.community-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-tabs {
    display: flex;
    gap: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: white;
    border-bottom-color: var(--netflix-red);
}

.dark-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dark-tag-cloud span {
    background-color: var(--netflix-light-gray);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.dark-tag-cloud span.active, .dark-tag-cloud span:hover {
    background-color: var(--netflix-red);
}

.dark-comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.comment-card {
    background-color: var(--netflix-dark-gray);
    padding: 1.2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.comment-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    background: #555;
    border-radius: 4px;
}

.comment-user {
    font-weight: 700;
    font-size: 0.9rem;
}

.comment-body {
    font-size: 0.95rem;
    color: #e5e5e5;
}

.comment-tags {
    display: flex;
    gap: 0.5rem;
}

.comment-tags span {
    color: var(--netflix-red);
    font-size: 0.8rem;
    font-weight: 600;
}

.comment-footer {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-footer span {
    cursor: pointer;
}

.comment-footer span:hover {
    color: white;
}

/* Comment Form */
.dark-comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--netflix-light-gray);
}

.feedback-selector {
    display: flex;
    gap: 0.5rem;
}

.feedback-option {
    flex: 1;
    background-color: var(--netflix-light-gray);
    color: var(--text-muted);
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.feedback-option.selected {
    background-color: var(--netflix-red);
    color: white;
}

textarea {
    background-color: var(--netflix-light-gray);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    resize: none;
    height: 80px;
    font-family: inherit;
}

.submit-btn-red {
    background-color: var(--netflix-red);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

.submit-btn-red:hover {
    background-color: #ff0a16;
}

/* Footer */
.netflix-footer {
    padding: 4rem 4%;
    background-color: var(--netflix-black);
    color: var(--text-muted);
    border-top: 1px solid var(--netflix-light-gray);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    color: var(--text-white);
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-link-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-link-col a:hover {
    text-decoration: underline;
}

.footer-impressum {
    margin-top: 2rem;
}

.service-code {
    background: none;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.service-code:hover {
    color: var(--text-white);
    border-color: var(--text-white);
}

.copyright {
    font-size: 0.75rem;
}

.impressum-text {
    margin-top: 1rem;
    line-height: 1.6;
    color: var(--netflix-red);
}

@media (max-width: 700px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility */
.hidden-grid {
    display: none;
}

/* Mobile Adaptation */
@media (max-width: 900px) {
    .detail-grid-layout {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .netflix-nav {
        padding: 1rem 4%;
    }
    .main-nav {
        display: none; /* Mobile nav would be a dropdown usually */
    }
}