/*
Theme Name: SosmedPress Premium
Theme URI: https://newsthemes.web.id/
Author: Mastrymedia
Author URI: https://newsthemes.web.id/
Description: Professional WordPress theme with "Social Media Experience" concept. Features iOS-inspired UI, Dynamic Swiper Navigation, AJAX Like & Save, Advanced Dark Mode, and Smart In-Feed Ads. Built for high-performance engagement and a seamless mobile-native feel.
Version: 2.1.5
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: social-media-style, mobile-optimized, dark-mode, app-like, news, magazine, infinite-scroll, ads-manager
Text Domain: mediapress
*/

::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; }
body { -ms-overflow-style: none; }

/* --- TYPOGRAPHY DASAR --- */
body {
    background-color: #ffffff;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #111; 
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
    vertical-align: middle;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.header-v2 .material-icons-outlined {
    color: inherit;
}

/* ---------- SLOT ADS HEADER FRONTPAGE ---------- */

.ad-wrapper {
    max-width: 1055px;
    margin: 0 auto;
    padding-top: 20px;
    width: 100%;
    text-align: center;
}

.ad-wrapper figure {
    margin: 0;
}

.ad-wrapper img {
    width: auto;
}

@media screen and (max-width: 1055px) {
    .ad-wrapper {
        padding: 15px 15px 0;
    }
}

/* --- LAYOUT TITLE HALAMAN TAG & SEARCH --- */

.v2-tag-header,
.v2-search-header,
.v2-archive-header {
    padding: 100px 20px 20px;
}

.v2-tag-header h1,
.v2-search-header h1,
.v2-archive-header h1 {
    font-size: x-large;
}

.v2-tag-header h1::before {
    content: 'Tag: ';
}

.v2-tag-header p,
.v2-search-header p,
.v2-archive-header p {
    font-size: small;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

/* ---------- PESAN ERROR GLOBAL ---------- */

.v2-empty-message {
    color: #999;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.v2-empty-message a {
    display: inline-block;
    font-size: 13px;
    color: #fff;
    background: #000;
    padding: 15px 30px;
    border-radius: 25px;
    line-height: 1;
    font-weight: bold;
}

/* --- LAYOUT COMMENTS --- */

.mediapress-facebook-comments {
    margin: 50px 0;
}

.mediapress-facebook-comments h2 {
    font-size: 20px;
    line-height: 1;
}

/* --- BACK TO TOP --- */

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
    background: #333; 
    color: #fff; 
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px; 
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    text-decoration: none;
}

#back-to-top:hover {
    background: #555;
    opacity: 0.9;
}

.back-to-top-icon.material-icons {
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 40px;
    display: inline-block;
    vertical-align: top;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-feature-settings: 'liga';
            font-feature-settings: 'liga';
}

/* CSS UNTUK PESAN KOSONG MASTER (Sesuai Class 1.5.5) */
.no-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 70vh; /* Membuat konten berada di tengah layar secara vertikal */
    text-align: center;
    padding: 20px;
}

.no-content h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #666; /* Warna abu-abu sesuai instruksi Master */
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.no-content p {
    font-size: 1rem;
    color: #999;
    margin: 0;
}

/* --- V2 Author Profile Stats & Socials --- */
.v2-author-stats-v2 {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.v2-stat-box {
    background: rgba(0,0,0,0.03);
    padding: 12px 20px;
    border-radius: 16px;
    min-width: 95px;
    text-align: center;
    transition: transform 0.3s ease;
}

.dark-mode .v2-stat-box {
    background: rgba(255,255,255,0.05);
}

.v2-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.v2-stat-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 0.4;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Social Buttons */
.v2-author-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.v2-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.03);
    color: inherit;
    text-decoration: none !important;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark-mode .v2-social-link {
    background: rgba(255,255,255,0.05);
}

.v2-social-link:hover {
    transform: translateY(-4px);
    color: #fff !important;
}

/* Hover Colors per Brand */
.v2-social-link.instagram:hover { background: #E1306C; }
.v2-social-link.tiktok:hover { background: #000000; }
.v2-social-link.youtube:hover { background: #FF0000; }
.v2-social-link.facebook:hover { background: #1877F2; }
.v2-social-link.twitter:hover { background: #000000; } /* Untuk X */
