/**
 * Klasičan Gejming - Responsive Styles
 * Media queries za različite veličine ekrana
 */

/* ===== Large Desktop (1400px+) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-slider {
        height: 500px;
    }
}

/* ===== Desktop (1200px - 1399px) ===== */
@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* ===== Tablet Landscape (992px - 1199px) ===== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ===== Tablet Portrait (768px - 991px) ===== */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Header */
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .nav-list {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* Hero */
    .hero-slider {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    /* News */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Mobile Landscape (576px - 767px) ===== */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Header */
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    /* Hero */
    .hero-slider {
        height: 300px;
        border-radius: var(--radius-lg);
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .slide-content p {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    /* Section headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        flex-direction: row;
    }
    
    .card-image {
        width: 120px;
        min-width: 120px;
        height: 100%;
        min-height: 100px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .card-excerpt {
        display: none;
    }
    
    /* Sidebar */
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    /* Article */
    .article-header h1 {
        font-size: 26px;
    }
    
    .article-meta {
        flex-wrap: wrap;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ===== Mobile Portrait (< 576px) ===== */
@media (max-width: 575px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    /* Header */
    .site-header {
        padding: 10px 0;
    }
    
    .logo img {
        height: 36px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .header-btn {
        width: 36px;
        height: 36px;
    }
    
    /* Hero */
    .hero-slider {
        height: 250px;
        margin: 0 -12px;
        border-radius: 0;
    }
    
    .slide-content h2 {
        font-size: 18px;
    }
    
    .slide-content p {
        display: none;
    }
    
    .hero-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* Sections */
    .section-header {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    /* News Cards */
    .news-card {
        border-radius: var(--radius-md);
    }
    
    .card-image {
        width: 100px;
        min-width: 100px;
    }
    
    .card-meta {
        font-size: 11px;
    }
    
    .card-title {
        font-size: 13px;
    }
    
    /* Sidebar Widgets */
    .widget {
        padding: 16px;
    }
    
    .widget-title {
        font-size: 15px;
    }
    
    /* Article */
    .article-header h1 {
        font-size: 22px;
    }
    
    .article-meta span {
        font-size: 12px;
    }
    
    .author-avatar {
        width: 48px;
        height: 48px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 12px 24px;
    }
    
    /* Forms */
    input, textarea, select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-title {
        font-size: 16px;
    }
}

/* ===== Very Small Screens (< 360px) ===== */
@media (max-width: 359px) {
    .container {
        padding: 0 10px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .hero-slider {
        height: 200px;
    }
    
    .slide-content h2 {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .card-image {
        width: 80px;
        min-width: 80px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .site-header,
    .sidebar,
    .footer,
    .share-buttons,
    .comments-section,
    .related-news {
        display: none;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .article-content {
        font-size: 11pt;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    :root {
        --border-color: #555;
        --text-muted: #aaa;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-slider {
        scroll-behavior: auto;
    }
}
