/* MATA INDONESIA CUSTOM REVISION */

/* Header Logo & Tagline */
.logo-banner .logo-link { display: inline-block; }
.logo-banner .logo { max-width: 250px; height: auto; }
.logo-banner .site-tagline {
    font-size: 14px;
    font-weight: 700;
    margin-top: 5px;
    color: #4a4a4a;
}
.mobile-logo .logo { max-width: 180px; height: auto; }

/* Typography Overrides */
.post-title h1, .post-title h2 { line-height: 1.3; }
.hero-headline { font-size: 32px !important; }
.article-headline { font-size: 44px !important; }
.post-text p {
    font-size: 19px !important;
    line-height: 1.75 !important;
    margin-bottom: 20px;
    color: #333;
}
.post-text h2 { font-size: 28px !important; margin-top: 30px; margin-bottom: 15px; }

/* Responsiveness */
@media (max-width: 768px) {
    .logo-banner .logo { max-width: 200px; }
    .hero-headline { font-size: 26px !important; }
    .article-headline { font-size: 32px !important; }
    .post-text p { font-size: 17px !important; line-height: 1.65 !important; }
}

/* Splash Screen Placeholder (Will be triggered via JS) */
#mata-splash {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: opacity 0.5s ease-out;
}
#mata-splash.hide { opacity: 0; pointer-events: none; }
#mata-splash img { max-width: 250px; margin-bottom: 15px; }
#mata-splash p { font-size: 16px; font-weight: bold; color: #cc0000; }

/* MATA INDONESIA MICRO ANIMATIONS & POLISH */

/* Rounded Corners for Images */
.post-image img, 
.post-item-image img, 
.list-left img,
.post-text img,
.img-container img,
.img-container,
.featured-slider-item img,
.featured-box .box-inner,
.featured-box .box-inner img {
    border-radius: 12px !important;
    overflow: hidden;
}

/* Force Header to always be white */
.dark-mode .top-bar,
.dark-mode .logo-banner,
.dark-mode .main-menu {
    background-color: #ffffff !important;
    border-bottom-color: #eee !important;
}

.dark-mode .top-bar li, 
.dark-mode .top-bar a, 
.dark-mode .top-bar span,
.dark-mode .main-menu ul.nav.navbar-nav > li > a {
    color: #333333 !important;
}

.dark-mode .main-menu ul.nav.navbar-nav > li:hover > a {
    color: #cc0000 !important;
}

/* Force solid background for ALL category labels */
span.category-label,
a span.category-label,
.featured-slider-item span.category-label,
.featured-box span.category-label,
.post-item-horizontal span.category-label {
    background-color: #cc0000 !important;
    color: #ffffff !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    border: none !important;
}

/* Remove gap between trending and featured */
.section-featured {
    margin-top: 15px !important;
}

/* Popular Posts Tabs */
ul.popular-posts {
    list-style: none;
    padding-left: 0;
}

.sidebar-widget .widget-body ul.custom-pill-tabs > li.active > a,
ul.custom-pill-tabs > li.active > a {
    background-color: #cc0000 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
}

/* Contextual Small Post Styles */
.sidebar-widget .small-post-left {
    width: 60px !important;
    height: 60px !important;
}
.sidebar-widget .meta-date { display: none !important; }
.sidebar-widget .small-post-category { display: none !important; }

.section-block-3 .small-post-left {
    width: 150px !important;
    height: 100px !important;
}
.section-block-3 .meta-views { display: none !important; }
.section-block-3 .post-item-small {
    margin-bottom: 25px;
}
.section-block-3 .post-item-small .title {
    font-size: 15px !important;
    margin-bottom: 8px !important;
}

/* Hover effects for article cards */
.post-item, .post-item-small, .post-item-mid {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
}
.post-item:hover, .post-item-small:hover, .post-item-mid:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Image zoom effect on hover */
.post-item-image img, .post-item-mid .post-image img, .post-item-small .list-left img {
    transition: transform 0.5s ease;
}
.post-item:hover .post-item-image img, 
.post-item-mid:hover .post-image img, 
.post-item-small:hover .list-left img {
    transform: scale(1.05);
}

/* Navigation & Button interactions */
.btn-custom {
    transition: all 0.3s ease-in-out;
}
.btn-custom:hover {
    background-color: #a00000;
    transform: scale(1.02);
}

.main-menu.navbar .nav > li > a {
    transition: color 0.2s ease-in-out;
}
.main-menu.navbar .nav > li > a:hover {
    color: #cc0000;
}

/* REDESIGN MOCKUP STYLES - PIXEL PERFECT TWEAKS */

/* Headers */
.custom-red-head {
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    margin-bottom: 20px;
    margin-top: 20px;
}
.custom-red-head .title {
    margin: 0;
    border-bottom: 3px solid #cc0000;
    padding-bottom: 8px;
    margin-bottom: -7px;
}
.custom-red-head .red-title {
    color: #000;
    font-weight: 800;
    font-size: 22px;
}
.custom-red-head .red-link {
    color: #cc0000;
    font-weight: bold;
    font-size: 13px;
    text-transform: none;
}

/* Category Labels (Red text instead of background) */
.category-label {
    background: transparent !important;
    color: #cc0000 !important;
    font-weight: 800 !important;
    font-size: 12px;
    text-transform: uppercase;
    padding: 0 !important;
    margin-bottom: 5px;
    display: inline-block;
}

/* Post Meta (Date, Author) */
.post-meta {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}
.post-meta a { color: #888; }
.post-meta i { font-size: 11px; margin-right: 3px; }

/* Popular Posts Numbered List CSS removed (now using PHP) */
.custom-popular-widget .popular-posts li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px !important;
    margin-right: 10px;
}
.custom-popular-widget .nav-tabs > li.active > a, 
.custom-popular-widget .nav-tabs > li > a:hover {
    background-color: #cc0000;
    color: #fff !important;
    border-radius: 4px;
    border: none;
}
.custom-popular-widget .nav-tabs > li > a {
    color: #555;
    font-weight: bold;
    border: none;
    padding: 8px 12px;
}
.custom-popular-widget .nav-tabs {
    border-bottom: none;
    margin-bottom: 15px;
}

/* REDESIGN MOCKUP STYLES */
