/**
 * ============================================
 * ITV - Custom Styles (Bootstrap 5 Based)
 * ============================================
 */

:root {
    --primary-color: #49c4d6;
    --secondary-color: #bd2027;
    --dark-color: #084149;
    --light-color: #95d7e3;
    --gradient-primary: linear-gradient(135deg, #95d7e3, #49c4d6);
    --gradient-secondary: linear-gradient(135deg, #bd2027, #d63447);
}

/*
.text-muted {
    --bs-text-opacity: 1;
    color: rgb(193 193 193) !important;
}
*/

/* Footer text colors */
.footer .text-muted {
    color: #ffffff !important;
    opacity: 0.8;
}

.footer .text-muted:hover {
    opacity: 1;
}

/* ============================================
   HORÁRIOS DE SALAT - NOVO DESIGN
   ============================================ */

.salat-section {
    position: relative;
    margin: 2rem 0;
}

.salat-container {
    position: relative;
    background: linear-gradient(135deg, #1a472a 0%, #2d5016 50%, #1a472a 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.salat-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.geometric-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px);
}

.moon-decoration {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: rgba(255, 215, 0, 0.15);
    transform: rotate(-20deg);
}

.star-decoration {
    position: absolute;
    color: rgba(255, 215, 0, 0.2);
    font-size: 1.5rem;
    animation: twinkle 3s infinite;
}

.star-1 { top: 50px; left: 10%; animation-delay: 0s; }
.star-2 { top: 100px; right: 20%; animation-delay: 1s; }
.star-3 { bottom: 50px; left: 15%; animation-delay: 2s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.salat-content {
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.salat-header {
    margin-bottom: 2rem;
}

.salat-icon-main {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #1a472a;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.salat-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.salat-date {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
}

.provincia-selector {
    display: flex;
    align-items: center;
}

.provincia-selector label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.provincia-selector select {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.provincia-selector select:hover,
.provincia-selector select:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

.provincia-selector select option {
    background: #2d5016;
    color: #ffffff;
}

.salat-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0;
}

.salat-time-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.salat-time-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.salat-time-item.proxima {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 237, 78, 0.2));
    border: 2px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
    }
}

.proxima-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a472a;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.salat-time-icon {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 0.8rem;
}

.salat-time-content {
    color: #ffffff;
}

.salat-time-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.salat-time-arabic {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    font-family: 'Amiri', serif;
}

.salat-time-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.salat-time-item.proxima .salat-time-value {
    color: #ffd700;
}

.salat-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.sunrise-info {
    font-size: 0.9rem;
}

.sunrise-info i {
    color: #ffd700;
}

.countdown-timer {
    font-size: 0.9rem;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.countdown-timer i {
    color: #ffd700;
}


/* ============================================
   GENERAL
   ============================================ */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.95); }
}

/* ============================================
   NAVBAR
   ============================================ */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary-color);
    font-weight: 700;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--dark-color);
    border-color: var(--dark-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 196, 214, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #9a1a1f;
    border-color: #9a1a1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(189, 32, 39, 0.4);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.badge-secondary {
    background-color: var(--secondary-color);
}

/* ============================================
   CAROUSEL CUSTOM
   ============================================ */
.carousel-item {
    height: 400px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #1a1a1a !important;
    margin-top: auto;
}

.footer a.hover-primary:hover {
    color: var(--primary-color) !important;
}

.app-badge {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-badge:hover {
    transform: translateY(-3px);
}

.social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--dark-color) !important;
    transform: translateY(-3px);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.btn-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.btn-back-to-top.show {
    display: flex;
}

/* ============================================
   PROGRAM CARD (Custom for TV)
   ============================================ */
.program-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover::before {
    opacity: 1;
}

.program-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ============================================
   LIVE INDICATOR
   ============================================ */
.live-indicator {
    display: inline-flex;
    align-items: center;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    animation: pulse-live 2s infinite;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: blink 1s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-card {
    position: relative;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(73, 196, 214, 0.2);
}

.price-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary-color);
}

/* ============================================
   COMMENT TICKER (para live)
   ============================================ */
.comment-ticker {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    overflow: hidden;
    position: relative;
}

.comment-ticker-content {
    display: flex;
    animation: scroll-left 30s linear infinite;
}

.comment-item {
    white-space: nowrap;
    padding: 0 30px;
    font-size: 0.9rem;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-bar-custom {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar-custom input {
    border-radius: 50px;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--primary-color);
}

.search-bar-custom button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .btn-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}


/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* ============================================
   FOOTER TEXT COLOR OVERRIDE
   ============================================ */

/* Força texto branco no footer - sobrescreve Bootstrap */
.footer .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
}

.footer .text-muted:hover {
    color: rgba(255, 255, 255, 1) !important;
}

/* Links no footer */
.footer a.text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a.text-muted:hover {
    color: rgba(255, 255, 255, 1) !important;
    text-decoration: none;
}

/* Outros textos no footer */
.footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer small,
.footer .small {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Override específico para elementos com text-muted no footer */
footer.footer * {
    --bs-text-opacity: 1;
}

footer.footer .text-muted {
    --bs-text-opacity: 1;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Garante que funcione mesmo com utilitários do Bootstrap */
.bg-dark .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================
   VIDEO PLAYER - VIMEO
   ============================================ */
.ratio-16x9 {
    position: relative;
    width: 100%;
}

.ratio-16x9::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.ratio-16x9 iframe,
.ratio-16x9 video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px 12px 0 0;
}

/* Card de edição hover */
.card.hover-lift .card-img-top {
    transition: transform 0.3s ease;
}

.card.hover-lift:hover .card-img-top {
    transform: scale(1.05);
}

/* Breadcrumb no fundo escuro */
.bg-dark .breadcrumb-item a {
    transition: color 0.3s ease;
}

.bg-dark .breadcrumb-item a:hover {
    color: var(--primary-color) !important;
}

/* Content text styling */
.content-text {
    line-height: 1.8;
    color: #555;
}

.content-text p {
    margin-bottom: 1rem;
}

