/* GTTV Custom Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gttv-red: #dc3545;
    --gttv-blue: #0d6efd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: url('/assets/images/racing-background.jpg') center center/cover no-repeat fixed;
    background-color: var(--light-color);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--gttv-blue) !important;
}

/* Modern Hero Section */
.hero-section-modern {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%), 
                url('/assets/images/Foto1.jpg') center center/cover no-repeat;
    height: 150px;
    min-height: 150px;
    max-height: 150px;
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    transition: background-image 0.5s ease-in-out;
    /* Chrome compatibility fixes */
    -webkit-background-size: cover;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: background-image;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-icon {
    display: inline-block;
    margin-right: 1rem;
    color: #ffd700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    max-width: 500px;
    margin: 0 0 0.5rem 0;
}

.hero-buttons-inline {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Modern Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-modern:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover:before {
    left: 100%;
}

.btn-modern-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.4);
    color: white;
}

.btn-modern-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-modern-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-icon {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
        text-align: center !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center !important;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons-inline {
        justify-content: center !important;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-modern {
        width: 100%;
        max-width: 250px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gttv-blue), var(--gttv-red));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Video Player */
.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Live Preview Styles */
.live-preview-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.live-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.live-overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

.live-play-button {
    background: rgba(220, 53, 69, 0.9);
    border: 3px solid white;
    border-radius: 50px;
    color: white;
    padding: 2rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.live-play-button:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.live-play-button i {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.play-text {
    text-align: left;
    line-height: 1.2;
}

.live-status-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(220, 53, 69, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.timer-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.timer-overlay small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.video-player, 
.vjs-tech {
    width: 100% !important;
    height: auto !important;
    min-height: 400px;
    max-height: 600px;
    background: #000;
    object-fit: contain !important;
}

/* Video.js specific styles */
.video-js {
    width: 100% !important;
    height: auto !important;
    max-height: 600px;
}

.video-js .vjs-tech {
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
}

.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.play-button {
    background: var(--gttv-red);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.play-button:hover {
    background: #c82333;
}

.timer-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: var(--gttv-blue);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    font-weight: bold;
}

/* Partner Videos */
.partner-video {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.partner-video iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* TV Guide */
.tv-guide {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.channel-selector {
    background: var(--dark-color);
    color: white;
    padding: 1rem;
}

.channel-list {
    max-height: 200px;
    overflow-y: auto;
}

.channel-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.channel-item:hover,
.channel-item.active {
    background: var(--gttv-blue);
}

.program-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.program-item:hover {
    background: var(--light-color);
}

.program-time {
    font-weight: bold;
    color: var(--gttv-blue);
}

.program-title {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* Search */
.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    border-radius: 50px;
    padding-left: 3rem;
    border: 2px solid #ddd;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Language Switcher */
.language-switcher .dropdown-item.active {
    background-color: var(--gttv-blue);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .video-container {
        margin-bottom: 2rem;
    }
    
    .partner-video iframe {
        height: 200px;
    }
    
    .channel-list {
        max-height: 150px;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Error Messages */
.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Success Messages */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Utility Classes */
.text-gttv-blue { color: var(--gttv-blue) !important; }
.text-gttv-red { color: var(--gttv-red) !important; }
.bg-gttv-blue { background-color: var(--gttv-blue) !important; }
.bg-gttv-red { background-color: var(--gttv-red) !important; }