/*
Theme Name: Kerlacki Sports News Theme
Description: WordPress-Theme basierend auf kerlacki.com mit perfekter mobiler Version
Author: WordPress Developer
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: kerlacki-theme
*/

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===== MOBILE-FIRST RESPONSIVE UTILITIES ===== */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

/* ===== HEADER STYLES ===== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Navigation Bar */
.header-top {
    background: linear-gradient(90deg, #e74c3c, #3498db, #f39c12, #9b59b6, #27ae60);
    padding: 8px 0;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-nav-left {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.top-nav-item {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s ease;
}

.top-nav-item:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    color: #fff;
    font-size: 16px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s ease;
}

.social-icon:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* Main Header */
.header-main {
    padding: 15px 0;
    background: #fff;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-logo {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-logo:hover {
    color: #c0392b;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #c0392b;
}

/* Search Form */
.header-search {
    flex: 1;
    max-width: 300px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    border: 2px solid #e74c3c;
    border-radius: 25px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #c0392b;
}

/* Main Navigation */
.main-navigation {
    background: #2c3e50;
    padding: 0;
}

.nav-menu {
    display: none; /* Hidden on mobile by default */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu.active {
    display: block;
}

.nav-menu li {
    border-bottom: 1px solid #34495e;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.nav-menu a:hover {
    background: #34495e;
    color: #fff;
}

/* Category Colors */
.nav-menu .menu-item-home a { background: #27ae60; }
.nav-menu .menu-item-futboll-vendi a { background: #e74c3c; }
.nav-menu .menu-item-ligat-tjera a { background: #3498db; }
.nav-menu .menu-item-futboll-internacional a { background: #e74c3c; }
.nav-menu .menu-item-sportet-tjera a { background: #27ae60; }
.nav-menu .menu-item-talentet a { background: #3498db; }
.nav-menu .menu-item-diaspora a { background: #f39c12; }
.nav-menu .menu-item-kosova a { background: #9b59b6; }
.nav-menu .menu-item-shqiperia a { background: #27ae60; }

/* News Ticker */
.news-ticker {
    background: #e74c3c;
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    animation: scroll-left 60s linear infinite;
}

.ticker-label {
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.ticker-item {
    font-size: 13px;
    flex-shrink: 0;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 30px 0;
    min-height: 500px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

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

.article-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    border-radius: 15px;
    margin-bottom: 10px;
}

/* Category Colors */
.category-futboll-vendi { background: #e74c3c; }
.category-futboll-internacional { background: #e74c3c; }
.category-sportet-tjera { background: #27ae60; }
.category-talentet { background: #3498db; }
.category-diaspora { background: #f39c12; }
.category-kosova { background: #9b59b6; }
.category-shqiperia { background: #27ae60; }

.article-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #2c3e50;
}

.article-title a {
    color: #2c3e50;
}

.article-title a:hover {
    color: #e74c3c;
}

.article-meta {
    font-size: 11px;
    color: #7f8c8d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-date {
    font-weight: 600;
}

.article-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.read-more {
    color: #e74c3c;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.read-more:hover {
    color: #c0392b;
}

/* Sidebar */
.sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sidebar-article {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

.sidebar-article:last-child {
    border-bottom: none;
}

.sidebar-image {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-content {
    flex: 1;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
    color: #2c3e50;
}

.sidebar-title a {
    color: #2c3e50;
}

.sidebar-title a:hover {
    color: #e74c3c;
}

.sidebar-date {
    font-size: 10px;
    color: #7f8c8d;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-stat {
    text-align: center;
    padding: 15px;
    background: #34495e;
    border-radius: 10px;
    min-width: 100px;
}

.footer-stat-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #3498db;
}

.footer-stat-number {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    display: block;
}

.footer-stat-label {
    font-size: 11px;
    text-transform: uppercase;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 12px;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #e74c3c;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #c0392b;
    transform: translateY(-3px);
}

/* ===== TABLET STYLES (768px+) ===== */
@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
        flex-wrap: wrap;
    }
    
    .nav-menu li {
        border-bottom: none;
        border-right: 1px solid #34495e;
    }
    
    .nav-menu li:last-child {
        border-right: none;
    }
    
    .nav-menu a {
        padding: 15px 20px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-wrapper {
        grid-template-columns: 2fr 1fr;
    }
    
    .article-image {
        height: 180px;
    }
}

/* ===== DESKTOP STYLES (1024px+) ===== */
@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .article-image {
        height: 200px;
    }
    
    .top-nav {
        flex-wrap: nowrap;
    }
    
    .header-content {
        flex-wrap: nowrap;
    }
    
    .nav-menu {
        justify-content: center;
    }
}

/* ===== LARGE DESKTOP STYLES (1200px+) ===== */
@media (min-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container {
        padding: 0 30px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .article-card {
        border: 2px solid #000;
    }
    
    .nav-menu a {
        border: 1px solid #fff;
    }
}

