/*
Theme Name: BujanociNet Master Fixed V25
Author: Gemini AI
Version: 25.0
*/

/* 1. RREGULLAT THEMELORE */
* { box-sizing: border-box; }
body { font-family: 'Open Sans', Arial, sans-serif; background-color: #f2f2f2; margin: 0; padding: 0; color: #222; line-height: 1.6; }
.container { width: 1240px; margin: 0 auto; display: block; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* 2. NAVIGACIONI */
.nav-telegrafi { position: sticky; top: 0; z-index: 999; width: 100%; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.nav-flex { display: flex; align-items: center; width: 1240px; margin: 0 auto; }
.logo-inline { padding: 5px 0; margin-right: 20px; }
.logo-inline img { height: 42px; }
.menu-items ul { list-style: none; padding: 0; margin: 0; display: flex; }
.menu-items ul li a { padding: 15px 12px; display: block; font-weight: 800; text-transform: uppercase; font-size: 12px; }
.weather-inline { margin-left: auto; display: flex; align-items: center; padding-left: 15px; border-left: 1px solid #eee; height: 40px; }
.weather-temp { font-weight: 800; font-size: 15px; color: #e11c21; }

/* 3. STRUKTURA E FAQES (BALLINA DHE LAJMI) */
.home-grid, .archive-layout { 
    display: flex; 
    gap: 40px; 
    margin-top: 25px; 
    align-items: flex-start;
}
.main-content, main { width: 850px; flex-shrink: 0; }
aside { width: 350px; flex-shrink: 0; }

/* 4. BALLINA (HOME) */
.cat-row { background: #fff; padding: 20px; margin-bottom: 30px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.cat-title { border-bottom: 2px solid #333; margin-bottom: 20px; display: flex; }
.cat-title h2 { margin: 0; font-size: 18px; color: #fff; padding: 7px 15px; text-transform: uppercase; }
.bg-sport { background: #e11c21; } .bg-ekonomi { background: #27ae60; } .bg-bote { background: #3498db; } .bg-magazin { background: #9b59b6; } .bg-shendetesi { background: #1abc9c; }

.news-wrapper-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.big-card-main img { width: 100%; height: 320px; object-fit: cover; border-radius: 4px; }
.news-title { font-size: 18px; font-weight: 800; margin-top: 10px; }
.small-photo-item img { width: 100%; height: 110px; object-fit: cover; border-radius: 4px; }
.small-title { font-size: 13px; font-weight: 700; margin-top: 5px; }

/* 5. FAQJA E LAJMIT (SINGLE) - FIXUAR */
.single-post-wrapper { background: #fff; padding: 30px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.1); width: 100%; }
.post-main-title { font-size: 34px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; color: #000; }
.post-meta-top { margin-bottom: 20px; display: flex; gap: 15px; align-items: center; }
.post-cat-label { background: #e11c21; color: #fff; padding: 4px 10px; font-weight: 800; text-transform: uppercase; font-size: 11px; }
.post-main-image img { width: 100%; border-radius: 4px; margin-bottom: 25px; }
.post-content-area { font-size: 18px; line-height: 1.8; color: #333; }

/* 5. FAQJA E LAJMIT VENDORE/BOTA/NACIONALE*/
.top-three-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.column-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.column-head {
    font-size: 16px;
    padding: 8px 12px;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.top-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.top-card h4 {
    font-size: 15px;
    margin: 10px 0;
    line-height: 1.3;
    font-weight: 800;
}

.top-list-item {
    padding: 8px 0;
    border-top: 1px dotted #ccc;
}

.top-list-item a {
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.top-list-item a:hover {
    color: #e11c21;
}

/* Stilizimi i rubrikave të reja në Sidebar */
.bg-opinion { background-color: #8e44ad !important; color: #fff; }
.bg-intervista { background-color: #c0392b !important; color: #fff; }
.bg-kuzhina { background-color: #27ae60 !important; color: #fff; }

.sidebar-card {
    margin-bottom: 15px;
    background: #f9f9f9;
    padding: 5px;
    border-radius: 4px;
}

.sidebar-card h4 {
    font-size: 13px !important;
    margin-top: 5px !important;
    padding: 5px !important;
    line-height: 1.3;
}

/* Rregullimi për Kuzhinën që të jetë më kompakte */
.mini-card {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mini-card img {
    width: 80px !important;
    height: 60px !important;
    object-fit: cover;
}

.mini-card h4 {
    font-size: 12px !important;
    margin: 0 !important;
}
/* 6. SIDEBAR TABS */
.sidebar-tabs { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.1); border-top: 3px solid #e11c21; margin-bottom: 25px; }
.tabs-header { display: flex; border-bottom: 1px solid #eee; background: #f9f9f9; }
.tab-btn { flex: 1; padding: 12px; border: none; background: none; font-weight: 800; font-size: 11px; text-transform: uppercase; cursor: pointer; color: #666; }
.tab-btn.active { color: #e11c21; background: #fff; border-bottom: 2px solid #e11c21; }
.tab-content { display: none; padding: 15px; }
.tab-content.active { display: block; }
.sidebar-list-item { border-bottom: 1px dotted #ccc; padding: 8px 0; display: flex; gap: 10px; }
.time-label { color: #e11c21; font-weight: 800; font-size: 11px; }
.popular-item { display: flex; gap: 10px; margin-bottom: 15px; align-items: center; }
.popular-rank { font-size: 22px; font-weight: 900; color: #ddd; min-width: 25px; }
.popular-thumb img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.popular-info a { font-size: 13px; font-weight: 700; }

/* 7. KATEGORIA (ARKIVA) */
.archive-item { display: flex; gap: 25px; padding: 15px; margin-bottom: 20px; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.archive-thumb { width: 300px; flex-shrink: 0; }
.archive-thumb img { width: 100%; height: 180px; object-fit: cover; border-radius: 4px; }
.archive-info { flex: 1; }

/7.1* STILIZIMI I RI PËR KATEGORINË SPORT */
.sport-custom-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sport-top-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.sport-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
}

.sport-card-title {
    font-size: 14px;
    font-weight: 800;
    margin-top: 8px;
    line-height: 1.3;
}

.sport-bottom-titles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.sport-text-only a {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    display: block;
}

.sport-text-only a:hover {
    color: #e11c21;
}
/* STILI I RI PËR PRAPASKENËN E SPORTIT */
.sport-bg-image {
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
                      url('images/futbolli.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Fotoja lëviz bashkë me faqen */
    border-radius: 8px;
    padding: 25px !important;
    border: 1px solid #ddd;
}

/* Ky rregull rrit pak kontrastin e titujve mbi foto */
.sport-bg-image .sport-card-title {
    background: rgba(255,255,255,0.9);
    padding: 5px;
    border-radius: 0 0 4px 4px;
}

/* share */

.modern-share-bar { display: flex; gap: 10px; margin-bottom: 25px; }
.share-btn { padding: 8px 15px; border-radius: 4px; color: #fff; font-weight: 800; font-size: 12px; }
.fb { background: #1877F2; } .wa { background: #25D366; }

footer { background: #1a1a1a; color: #fff; padding: 40px 0; text-align: center; width: 100%; margin-top: 40px; }

/* ============================================================
   RREGULLIMET MOBILE DHE HAMBURGER MENU
   ============================================================ */

/* Butoni Hamburger (I fshehur në Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    margin-left: auto; /* E dërgon në anën e djathtë */
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #fff; /* Vijat e bardha tani duken më mirë mbi background të errët */
    border-radius: 10px;
    transition: all 0.3s linear;
}

@media only screen and (max-width: 1024px) {
    .container, .nav-flex { 
        width: 100% !important; 
        padding: 0 15px; 
    }

    /* Shfaq butonin në Mobile */
    .menu-toggle { display: flex; }

    /* Fsheh menunë standarde dhe e bën "Dropdown" */
    .menu-items {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2f476d; /* Background i zi */
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        z-index: 998;
    }

    .menu-items.active { display: block; }

    .menu-items ul {
        flex-direction: column;
        width: 100%;
    }

    .menu-items ul li {
        border-bottom: 1px solid #222; /* pak kontrast mbi background të zi */
    }

    .menu-items ul li a {
        padding: 15px 20px;
        font-size: 14px;
        display: block;
        color: #fff; /* Tekst i bardhë për t’u dukur mbi background të zi */
    }

    .menu-items ul li a:hover {
        color: #ccc; /* Pak më e lehtë në hover */
    }

    /* Animacioni kur klikohet butoni (bëhet X) */
    .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    /* Rregullimi i strukturës Mobile për grid dhe flex */
    .home-grid, 
    .archive-layout, 
    .top-three-grid, 
    .news-wrapper-grid, 
    .sport-top-row, 
    .sport-bottom-titles {
        display: flex;
        flex-wrap: wrap;       /* Elementet bien njëra poshtë tjetrës në ekran të vogël */
        width: 100%;           /* Përdor 100% të ekranit */
        gap: 20px;             /* Hapësira mes elementeve */
    }

    /* Siguro që kolonat dhe wrapper-et kryesore të mbulojnë 100% */
    .main-content, 
    main, 
    aside, 
    .single-post-wrapper, 
    .archive-thumb {
        width: 100% !important;
    }

    /* Për grid-et CSS që nuk janë flex */
    .news-wrapper-grid, 
    .sport-top-row, 
    .sport-bottom-titles {
        grid-template-columns: 1fr !important; /* Bëhet një kolonë */
    }

    /* Fontet për lexueshmëri në celular */
    .post-main-title { font-size: 24px; }
    .news-title { font-size: 16px; }
    .small-title, 
    .top-card h4, 
    .sport-card-title { font-size: 14px; }

    /* Rregullime të vogla për elementë të tjerë */
    .weather-inline { margin-left: 15px; border: none; }
}

/* Fix për fotot që të mos dalin jashtë */
img { max-width: 100%; height: auto; }