/**
 * Klasican Gejming - Comprehensive Fixes v2
 * Date: 2026-01-20
 */

/* ===== CATEGORY BADGE - GORNJI LEVI UGAO, NE CELA SIRINA ===== */
.category-badge,
a.category-badge,
.card-image .category-badge,
.news-card .category-badge,
.hero-content .category-badge,
.hero-slide-content .category-badge {
    display: inline-flex !important;
    width: auto !important;
    max-width: fit-content !important;
    min-width: unset !important;
}

/* Na news karticama - GORNJI LEVI UGAO */
.news-card .card-image .category-badge,
.news-card .news-card-image .category-badge,
.card-image .category-badge,
.card-image a.category-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    bottom: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: fit-content !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    z-index: 15 !important;
    pointer-events: auto !important;
}

/* ===== FOOTER HOVER ANIMACIJE - GLATKE ===== */
.footer-links a,
.footer-menu a,
.footer-bottom a,
.site-footer a {
    transition: transform 0.3s ease, color 0.3s ease !important;
    display: inline-block;
}

.footer-links a:hover,
.footer-menu a:hover,
.site-footer a:hover {
    transform: translateX(5px);
    color: var(--accent-pink, #ff2d75) !important;
}

/* ===== HERO SLIDER - GLATKE TRANZICIJE ===== */
.hero-slider,
.hero-slide {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 0.8s ease !important;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-image img {
    transition: transform 10s ease !important;
}

.hero-slide.active .hero-image img {
    transform: scale(1.05);
}

/* Hero navigation dots */
.hero-dots .dot {
    transition: all 0.4s ease !important;
}

/* Hero arrows */
.hero-arrow {
    transition: all 0.3s ease !important;
    opacity: 0.7;
}

.hero-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Hero slider category - gornji levi */
.hero-content .category-badge,
.hero-slide-content .category-badge {
    position: relative !important;
    margin-bottom: 15px !important;
}

/* ===== MOBILNI MENI - STILIZOVAN ===== */
.mobile-menu,
.mobile-nav,
#mobileMenu {
    background: linear-gradient(180deg, rgba(10, 5, 20, 0.98) 0%, rgba(5, 5, 15, 0.99) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-left: 1px solid rgba(255, 45, 117, 0.2) !important;
}

.mobile-menu a,
.mobile-nav a,
#mobileMenu a {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease !important;
}

.mobile-menu a:hover,
.mobile-nav a:hover,
#mobileMenu a:hover {
    background: rgba(255, 45, 117, 0.1) !important;
    color: var(--accent-pink, #ff2d75) !important;
    padding-left: 25px !important;
}

.mobile-menu a i,
.mobile-nav a i,
#mobileMenu a i {
    color: var(--accent-cyan, #00d4ff) !important;
    margin-right: 10px !important;
}

/* Hamburger button */
.hamburger,
.mobile-menu-btn,
.menu-toggle {
    background: rgba(255, 45, 117, 0.1) !important;
    border: 1px solid rgba(255, 45, 117, 0.3) !important;
    border-radius: 8px !important;
    padding: 8px !important;
}

.hamburger span,
.hamburger-line {
    background: var(--accent-pink, #ff2d75) !important;
}

/* ===== HEADER & FOOTER BACKGROUND ===== */
.site-header {
    background: linear-gradient(180deg, rgba(10, 5, 20, 0.98) 0%, rgba(5, 5, 15, 0.95) 100%) !important;
    border-bottom: 1px solid rgba(255, 45, 117, 0.15) !important;
}

.site-footer {
    background: linear-gradient(180deg, rgba(5, 5, 15, 1) 0%, rgba(10, 5, 20, 1) 100%) !important;
    border-top: 1px solid rgba(255, 45, 117, 0.15) !important;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ===== MOBILNI NASLOVI - NE ISECENI ===== */
@media (max-width: 768px) {
    .news-card .card-content h3,
    .news-card .card-title,
    .news-card h3 {
        padding-top: 5px !important;
        margin-top: 0 !important;
        line-height: 1.3 !important;
        overflow: visible !important;
        text-overflow: unset !important;
        -webkit-line-clamp: unset !important;
        display: block !important;
    }

    .news-card .card-content {
        padding: 12px !important;
        padding-top: 10px !important;
    }

    /* Hero na mobilnom */
    .hero-content h2,
    .hero-slide-content h2 {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
        padding-top: 0 !important;
    }

    /* Category badge na mobilnom */
    .news-card .category-badge {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
    }
}

/* ===== NEWS CARD - PRIKAZATI UVOD ===== */
.news-card .card-excerpt,
.news-card .card-intro,
.news-card .news-excerpt {
    display: block !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem !important;
    margin-top: 8px !important;
}

@media (max-width: 768px) {
    .news-card .card-excerpt,
    .news-card .card-intro,
    .news-card .news-excerpt {
        -webkit-line-clamp: 2 !important;
        font-size: 0.8rem !important;
    }
}

/* ===== ARTICLE PAGE - CATEGORY BADGE ===== */
.article-page .article-header .category-badge,
.article-page .article-header a.category-badge,
.article-header .category-badge.large,
a.category-badge.large {
    display: inline-flex !important;
    width: auto !important;
    max-width: fit-content !important;
    height: auto !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
    align-self: flex-start !important;
    flex-shrink: 0 !important;
    padding: 8px 16px !important;
    margin-bottom: 16px !important;
}

/* ===== SHARE BUTTONS - CENTRIRANO ===== */
.article-share {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    text-align: center !important;
}

.article-share .share-label {
    margin-bottom: 12px !important;
}

.article-share .share-buttons {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

/* Sidebar share - centrirano */
.sidebar-widget.share-sticky .share-sticky-buttons {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

/* ===== ARTICLE BANNER STYLES ===== */
.article-banner {
    margin: 24px 0;
    width: 100%;
}

.article-banner-centered {
    display: flex;
    justify-content: center;
}

.article-banner .banner-content {
    overflow: hidden;
    position: relative;
}

/* Image Banner */
.article-banner .banner-image {
    display: block;
}

.article-banner .banner-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-banner .banner-image a {
    display: block;
}

/* Text Banner */
.article-banner .banner-text {
    padding: 30px;
}

.article-banner .banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.article-banner .banner-text-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-banner .banner-cta {
    display: inline-block;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-banner .banner-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Image + Text Banner */
.article-banner .banner-image-text {
    position: relative;
    min-height: 200px;
}

.article-banner .banner-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-banner .banner-overlay {
    position: absolute;
    inset: 0;
}

.article-banner .banner-text-layer {
    position: relative;
    z-index: 1;
    padding: 40px;
}

/* Media Side Banner */
.article-banner .banner-media-side {
    display: flex;
    gap: 24px;
    align-items: center;
}

.article-banner .banner-media-side.media-right {
    flex-direction: row-reverse;
}

.article-banner .banner-media {
    flex: 0 0 40%;
}

.article-banner .banner-media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-banner .banner-text-side {
    flex: 1;
    padding: 20px;
}

/* Video Banner */
.article-banner .banner-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.article-banner .banner-video iframe,
.article-banner .banner-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .article-banner .banner-media-side {
        flex-direction: column;
    }
    
    .article-banner .banner-media-side.media-right {
        flex-direction: column;
    }
    
    .article-banner .banner-media {
        flex: 0 0 100%;
    }
    
    .article-banner .banner-text-layer,
    .article-banner .banner-text {
        padding: 20px;
    }
    
    .article-banner .banner-title {
        font-size: 1.25rem;
    }
}
