/* ============================================
   WEBCAMS PAGE STYLES
   ============================================ */

.webcams-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    padding: 8rem 2rem 4rem;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.webcams-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../../resources/images/003.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.webcams-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.webcams-hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: var(--shadow-text);
}

.webcams-hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    opacity: 0.9;
}

/* Webcams Content */
.webcams-content {
    background: var(--bg-overlay);
    padding: 4rem 2rem;
}

/* Webcam Card */
.webcam-card {
    max-width: 1200px;
    margin: 0 auto 3rem;
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.webcam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.webcam-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.webcam-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2rem;
}

.webcam-location {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Live Image */
.webcam-live-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.webcam-live-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.webcam-live-container:hover .webcam-live-image {
    transform: scale(1.05);
}

.webcam-live-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.live-indicator {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.refresh-info {
    text-align: center;
    font-family: var(--font-body);
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}

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

/* Loading State */
.loading-container {
    text-align: center;
    padding: 3rem;
}

.loading-text {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-top: 1rem;
}

/* YouTube Channel CTA */
.youtube-cta {
    max-width: 800px;
    margin: 3rem auto;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.youtube-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.3);
}

.youtube-cta-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.youtube-cta-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.youtube-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    transition: all var(--transition-normal);
}

.youtube-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Info Cards */
.info-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-card-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.info-card-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.info-card-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    text-align: center;
}

/* Error State */
.error-message {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}

.error-message-title {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: #856404;
    margin-bottom: 1rem;
}

.error-message-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .webcam-card {
        padding: 2rem 1.5rem;
    }

    .webcam-title {
        font-size: 2rem;
    }

    .webcam-subtitle {
        font-size: 1.3rem;
    }

    .youtube-cta {
        padding: 2rem 1.5rem;
    }

    .youtube-cta-title {
        font-size: 1.7rem;
    }

    .youtube-logo {
        max-width: 280px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .webcams-hero {
        padding: 6rem 1rem 3rem;
    }

    .webcam-card {
        padding: 1.5rem 1rem;
    }

    .webcam-title {
        font-size: 1.7rem;
    }

    .webcam-subtitle {
        font-size: 1.2rem;
    }

    .webcam-live-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .youtube-cta-title {
        font-size: 1.5rem;
    }

    .youtube-cta-text {
        font-size: 1rem;
    }
}
