/*
Theme Name: Brondolan
Version: 1.0
*/

/* =========================
GLOBAL STYLES - KONSISTENSI FONT
========================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

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

a:hover {
    color: #e63946;
}



/* ===== HEADER ===== */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    color: #d93025;
}

.logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    position: relative;
}

.hamburger-box {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.3s ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Navigation */
.main-navigation {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 25px;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #d93025;
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: #d93025;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu .current-menu-item a {
    color: #d93025;
}

.nav-menu .current-menu-item a::after {
    width: 100%;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .site-header {
        padding: 10px 4%;
    }
    
    /* TAMBAHKAN INI: Adjust body padding untuk mobile */
    body {
        padding-top: 60px; /* Lebih kecil untuk mobile */
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    /* Animate hamburger icon */
    .menu-toggle.active .hamburger-inner {
        transform: rotate(45deg);
    }
    
    .menu-toggle.active .hamburger-inner::before {
        transform: rotate(-90deg) translateX(-8px);
    }
    
    .menu-toggle.active .hamburger-inner::after {
        opacity: 0;
    }
}

/* Sticky header on scroll */
body.admin-bar .site-header {
    top: 32px;
}

/* TAMBAHKAN INI: Adjust body padding ketika admin bar ada */
body.admin-bar {
    padding-top: calc(70px + 32px); /* Header height + admin bar height */
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
    
    /* TAMBAHKAN INI: Adjust body padding untuk mobile dengan admin bar */
    body.admin-bar {
        padding-top: calc(60px + 46px); /* Header height + admin bar height */
    }
}

.scrolled .site-header {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 8px 5% !important;
}

/* =========================
FOOTER ELEGAN - PORTAL MEDIA ONLINE
========================= */
.site-footer {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: #fff;
    padding: 25px 0 20px;
    margin-top: 60px;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FOOTER TOP SECTION */
.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #cbd5e0;
    line-height: 1.5;
}

.footer-section h4 {
    color: #e63946;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #e63946;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Footer Contact Info */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #cbd5e0;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact i {
    color: #e63946;
    margin-right: 12px;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

/* Social Media Icons Styling */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: #e63946;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
    border-color: #e63946;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Warna khusus untuk setiap platform pada hover */
.social-icon:nth-child(1):hover { background: #1877F2; } /* Facebook Blue */
.social-icon:nth-child(2):hover { background: #000000; } /* TikTok Black */
.social-icon:nth-child(3):hover { background: #FF0000; } /* YouTube Red */
.social-icon:nth-child(4):hover { background: #000000; } /* X Black */

/* Optional: Warna berbeda untuk setiap icon saat normal */
.social-icon:nth-child(1) { color: #1877F2; }
.social-icon:nth-child(2) { color: #000000; }
.social-icon:nth-child(3) { color: #FF0000; }
.social-icon:nth-child(4) { color: #000000; }

.social-icon:nth-child(1):hover { color: #fff; }
.social-icon:nth-child(2):hover { color: #fff; }
.social-icon:nth-child(3):hover { color: #fff; }
.social-icon:nth-child(4):hover { color: #fff; }

/* FOOTER BOTTOM SECTION */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #a0aec0;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #e63946;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #c53030;
    transform: translateY(-3px);
}

/* RESPONSIVE FOOTER */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* ANIMATIONS & EFFECTS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* SPECIAL EFFECTS */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e63946, #1a365d, #e63946);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================
BANNER IKLAN
========================= */
/* ===== Iklan Slot Fleksibel ===== */
.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
}

.ad-slot img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mode 728x90 */
.ad-728 img {
  width: 728px;
  height: 90px;
}

/* Mode 2 x 468x60 */
.ad-468x2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ad-468 img {
  width: 468px;
  height: 60px;
}

/* Responsif */
@media (max-width: 768px) {
  .ad-728 img {
    width: 100%;
    height: auto;
  }

  .ad-468 img {
    width: 100%;
    height: auto;
  }
}

/* =========================
SINGLE PAGE
========================= */
/* ===== Single Page Layout ===== */
.page-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-header {
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 2px solid #eee;
  padding-bottom: 1rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
}

.page-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.page-links {
  margin-top: 2rem;
  text-align: center;
}

.comments-area {
  margin-top: 3rem;
}


/* =========================
ARCHIVE PAGE STYLES
========================= */
.archive-page {
    padding: 2rem 0;
}

.archive-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #e63946;
}

.archive-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.archive-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* FEATURED POST (Tetap sama) */
.featured-post {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.featured-post .post-thumbnail {
    position: relative;
    overflow: hidden;
}

.featured-post .post-thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.featured-post .post-content {
    padding: 1.5rem;
}

/* HORIZONTAL POST LAYOUT (Baru) */
.horizontal-post {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.horizontal-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.horizontal-post .post-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
}

.horizontal-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.horizontal-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.horizontal-post .post-content {
    flex: 1;
    min-width: 0;
}

/* POST META */
.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.featured-post .post-meta {
    margin-bottom: 0.75rem;
}

.post-category a {
    background: #e63946;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.post-category a:hover {
    background: #d62828;
}

.post-date {
    color: #666;
    font-size: 0.8rem;
}

.post-time {
    color: #888;
    font-size: 0.75rem;
}

/* POST TITLE */
.post-title {
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.featured-post .post-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.horizontal-post .post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.post-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #e63946;
}

/* POST EXCERPT */
.post-excerpt {
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.featured-post .post-excerpt {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.horizontal-post .post-excerpt {
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* READ MORE */
.read-more {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #e63946;
}

/* PAGINATION */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
}

.pagination .page-numbers {
    padding: 0.8rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #e63946;
    color: white;
    border-color: #e63946;
}

/* NO POSTS */
.no-posts {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.no-posts h3 {
    color: #e63946;
    margin-bottom: 1rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .archive-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-post .post-thumbnail img {
        height: 250px;
    }
    
    .archive-title {
        font-size: 1.8rem;
    }
    
    .horizontal-post {
        padding: 0.8rem;
    }
    
    .horizontal-post .post-thumbnail {
        width: 100px;
        height: 75px;
    }
    
    .horizontal-post .post-title {
        font-size: 1rem;
    }
    
    .horizontal-post .post-excerpt {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .horizontal-post {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .horizontal-post .post-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .featured-post .post-title {
        font-size: 1.5rem;
    }
    
    .archive-page {
        padding: 1rem 0;
    }
    
    .posts-grid {
        gap: 1rem;
    }
}