/*
Theme Name: SKI Centri Theme
Theme URI: https://ski.off.ba
Author: SKI Centri SBK/KSB
Author URI: https://ski.off.ba
Description: Custom theme for SKI Centri Bosnia & Herzegovina - Tourist information about ski resorts with live cameras
Version: 1.0.0
License: GPL v2 or later
Text Domain: ski-centri
Tags: custom-theme, ski-resorts, tourism, live-cameras, responsive

This theme is specifically designed for SKI Centri SBK/KSB website,
featuring ski resort information, live camera feeds, and tourist resources.
*/

/* =Reset & Base Styles
-------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    min-height: 60vh;
    padding: 2rem 0;
}

/* =Header
-------------------------------------------------------------- */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-title {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
}

.main-navigation {
    margin-top: 1rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.main-navigation a:hover {
    opacity: 0.8;
}

/* =Resort Cards
-------------------------------------------------------------- */
.resort-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.resort-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.resort-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.resort-card-content {
    padding: 1.5rem;
}

.resort-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.resort-card-description {
    color: #666;
    margin-bottom: 1rem;
}

.resort-card-link {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.resort-card-link:hover {
    background: #5a67d8;
}

/* =Live Camera Section
-------------------------------------------------------------- */
.live-camera-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    margin: 2rem 0;
}

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

.camera-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 10;
}

.camera-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.camera-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* =Map Integration
-------------------------------------------------------------- */
.resort-map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem 0;
}

/* =Footer
-------------------------------------------------------------- */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.footer-copyright {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
}

/* =Responsive Design
-------------------------------------------------------------- */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }

    .resort-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .site-title {
        font-size: 1.5rem;
    }
}

/* =Accessibility
-------------------------------------------------------------- */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

.skip-link:focus {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999999;
    padding: 1rem;
    background: #fff;
    color: #000;
}