/* =============================================
   Biz Siz Onlar - Ana Stiller
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    line-height: 1.3;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- HEADER ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header-nav a {
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent-primary);
    background: var(--accent-glow);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.user-dropdown .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 0;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
}

.theme-toggle-track {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.theme-toggle-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-primary);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="ice-blue"] .theme-toggle-thumb {
    transform: translateX(20px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- MAIN CONTENT ---- */
.main-content {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
    padding: 2rem;
}

/* ---- SECTION TITLES ---- */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--accent-primary);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-header .header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: flex-end;
    min-width: 250px;
}

.section-header .header-search {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
}

.section-header .header-search .form-control {
    flex: 1;
    height: 38px;
    padding: 0 1rem;
    font-size: 0.9rem;
}

.section-header .header-search .btn {
    height: 38px;
    padding: 0 1rem;
}

.section-title .view-all {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
}

/* ---- CONTENT GRID ---- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

/* ---- CONTENT CARD ---- */
.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-hover);
}

.content-card .card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: var(--bg-tertiary);
    display: block;
}

.content-card .card-poster-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}

.content-card .card-info {
    padding: 0.75rem;
}

.content-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card .card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-card .card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--warning);
    font-weight: 600;
    font-size: 0.8rem;
}

.content-card .card-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--accent-gradient);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.content-card .card-badge.live {
    background: linear-gradient(135deg, #ff1744, #d50000);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ---- FEATURED SLIDER ---- */
.featured-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    height: 400px;
    background: var(--bg-tertiary);
}

.featured-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.featured-slide.active {
    opacity: 1;
}

.featured-slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.featured-slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.featured-slide-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.featured-slide-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.slider-indicators {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent-primary);
    width: 24px;
    border-radius: 4px;
}

/* ---- HORIZONTAL SCROLL ---- */
.horizontal-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll .content-card {
    min-width: 180px;
    max-width: 180px;
    scroll-snap-align: start;
}

/* ---- DETAIL PAGE ---- */
.detail-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 70vh;
}

.detail-hero {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-poster {
    width: 280px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-synopsis {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.detail-cast {
    margin-bottom: 1.5rem;
}

.detail-cast h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Video Player Section */
.video-section {
    margin-top: 2rem;
    max-width: 100%;
}

.video-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.video-tab {
    padding: 0.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.video-tab.active,
.video-tab:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.video-player {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Video.js Custom Theme (Perihelion) */
.video-player .video-js {
    width: 100% !important;
    height: 100% !important;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-player .video-js .vjs-big-play-button {
    background: rgba(0, 212, 255, 0.85);
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    line-height: 70px;
    font-size: 2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.video-player .video-js .vjs-big-play-button:hover {
    background: rgba(0, 212, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-player .video-js .vjs-control-bar {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    height: 3.5em;
}

.video-player .video-js .vjs-play-progress,
.video-player .video-js .vjs-volume-level {
    background: var(--accent-primary, #00d4ff);
}

.video-player .video-js .vjs-slider {
    background: rgba(255, 255, 255, 0.15);
}

.video-player .video-js .vjs-load-progress div {
    background: rgba(255, 255, 255, 0.2);
}

/* ---- LIVE TV GRID ---- */
.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tv-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.tv-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.tv-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
}

.tv-card .channel-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.tv-card .live-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.8rem;
    background: var(--danger);
    color: #fff;
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* ---- SHORT VIDEO FEED ---- */
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.short-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.short-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.short-card .short-video {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 400px;
    background: #000;
}

.short-card .short-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.short-card .short-info {
    padding: 0.75rem;
}

.short-card .short-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.short-card .short-platform {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ---- SPORT CARDS ---- */
.sport-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.sport-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.sport-card .sport-poster {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.sport-card .sport-info {
    padding: 1rem;
}

.sport-card .sport-teams {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.sport-card .sport-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sport-card .sport-type-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ---- CONTACT FORM ---- */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* ---- FORM ELEMENTS ---- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-primary);
    color: #fff;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- ALERTS ---- */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.alert-error {
    background: rgba(255, 82, 82, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 82, 82, 0.2);
}

.alert-info {
    background: rgba(64, 196, 255, 0.1);
    color: var(--info);
    border: 1px solid rgba(64, 196, 255, 0.2);
}

/* ---- LOADING ---- */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* ---- PAGINATION ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
}

.pagination button.active,
.pagination button:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: default;
}