/**
 * Klasican Gejming - Mobile & UI Fixes
 * Popravke za mobilni prikaz, share ikonice, razmake
 * Version: 2026012002
 */

/* ===== SHARE BUTTONS FIX - Centrirane ikonice ===== */
.share-btn {
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.share-btn i,
.share-btn svg {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* ===== HERO CATEGORY BADGE FIX ===== */
/* Ne zauzima celu sirinu - samo koliko treba */
.hero-content .category-badge,
.hero-slide-content .category-badge {
    display: inline-block !important;
    width: auto !important;
    max-width: fit-content !important;
    padding: 8px 18px !important;
    margin-bottom: 15px !important;
}

/* ===== HERO/NEWS GAP FIX - Smanjen razmak ===== */
.hero-section {
    margin-bottom: 30px !important;
}

.news-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ===== NEWS CARD CATEGORY BADGE ===== */
.news-card .category-badge {
    display: inline-block !important;
    width: auto !important;
    max-width: fit-content !important;
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {
    /* Smanjen razmak hero/news na mobilnom */
    .hero-section {
        margin-bottom: 20px !important;
    }

    /* Hero category badge - manji na mobilnom */
    .hero-content .category-badge,
    .hero-slide-content .category-badge {
        padding: 5px 12px !important;
        font-size: 0.7rem !important;
    }

    /* Kartice - bolje prikazivanje slike */
    .news-card .card-image,
    .news-card .news-card-image {
        aspect-ratio: 16/9 !important;
        overflow: hidden;
    }

    .news-card .card-image img,
    .news-card .news-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    /* Category badge - manji i ne preko cele slike */
    .news-card .category-badge {
        position: absolute;
        bottom: 10px !important;
        left: 10px !important;
        padding: 4px 10px !important;
        font-size: 0.65rem !important;
        max-width: 60% !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Gradient overlay - manji */
    .card-image::after,
    .news-card-image::after {
        height: 50% !important;
    }

    /* Hero slider */
    .hero-slider {
        aspect-ratio: 16/10 !important;
    }

    .hero-image img {
        object-fit: cover;
        object-position: center center;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .hero-section {
        margin-bottom: 15px !important;
    }

    .hero-content .category-badge,
    .hero-slide-content .category-badge {
        padding: 4px 10px !important;
        font-size: 0.6rem !important;
    }

    .news-card .category-badge {
        padding: 3px 8px !important;
        font-size: 0.6rem !important;
        bottom: 8px !important;
        left: 8px !important;
    }

    /* Slika se vidi cela */
    .news-card .card-image,
    .news-card .news-card-image {
        aspect-ratio: 16/9 !important;
    }
}

/* ===== CRITICAL CATEGORY BADGE FIXES ===== */
/* Fix za kategoriju da ne zauzima celu širinu */
.card-image .category-badge,
.news-card .card-image .category-badge,
.news-card .category-badge,
a.category-badge,
.category-badge {
    display: inline-flex !important;
    width: auto !important;
    max-width: fit-content !important;
    min-width: 0 !important;
}

/* Hero category badges */
.hero-section .category-badge,
.hero-content .category-badge,
.hero-slide-content .category-badge {
    display: inline-flex !important;
    width: auto !important;
    max-width: fit-content !important;
}
