/*
Theme Name: Home Interior Design
Theme URI: https://example.com/home-interior-design
Author: Interior Design Studio
Author URI: https://example.com
Description: Tema WordPress premium untuk niche Home Interior and Design. Dioptimalkan untuk SEO dengan schema BlogPosting, Organization, WebSite, dan BreadcrumbList. Layout responsif dan optimal untuk pemasangan iklan AdSense.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: home-interior-design
Tags: interior-design, home-decor, blog, news, adsense-ready, seo-friendly, responsive, schema-ready
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #c9a96e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a08050;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: 30px 0;
}

.content-area {
    width: 100%;
}

@media (min-width: 992px) {
    .content-sidebar-wrapper {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }

    .content-area {
        min-width: 0;
    }

    .widget-area {
        min-width: 0;
    }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #2c2c2c;
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 15px 0;
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c2c2c;
    letter-spacing: -0.5px;
}

.site-title a {
    color: inherit;
}

.site-description {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
    background: #fff;
    border-top: 1px solid #eee;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 14px 20px;
    color: #444;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #c9a96e;
    background: #fafafa;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 100;
    border-top: 2px solid #c9a96e;
}

.main-navigation li:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu a {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-transform: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-wrapper {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.breadcrumb a {
    color: #c9a96e;
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-section .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 60px 0 30px;
    color: #fff;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-title a {
    color: #fff;
}

.hero-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   POST GRID
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.post-card .post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

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

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

.post-card .post-content {
    padding: 20px;
}

.post-card .post-category {
    display: inline-block;
    background: #c9a96e;
    color: #fff;
    padding: 3px 12px;
    border-radius: 3px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.post-card .post-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.post-card .post-title a {
    color: inherit;
}

.post-card .post-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post .entry-header {
    margin-bottom: 25px;
}

.single-post .entry-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2c2c2c;
    margin-bottom: 15px;
}

.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.single-post .entry-meta a {
    color: #666;
}

.single-post .entry-meta .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
}

.single-post .featured-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.single-post .featured-image img {
    width: 100%;
    height: auto;
}

.single-post .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    margin: 30px 0 15px;
    color: #2c2c2c;
    line-height: 1.3;
}

.single-post .entry-content h2 {
    font-size: 1.6rem;
}

.single-post .entry-content h3 {
    font-size: 1.3rem;
}

.single-post .entry-content p {
    margin-bottom: 20px;
}

.single-post .entry-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.single-post .entry-content blockquote {
    border-left: 4px solid #c9a96e;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.single-post .entry-content li {
    margin-bottom: 8px;
}

/* ============================================
   ADSENSE PLACEMENTS
   ============================================ */
.ad-slot {
    text-align: center;
    margin: 25px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.ad-slot-header {
    margin: 15px 0;
}

.ad-slot-content-top {
    margin: 0 0 25px;
}

.ad-slot-content-mid {
    margin: 25px 0;
}

.ad-slot-content-bottom {
    margin: 25px 0 0;
}

.ad-slot-sidebar-top {
    margin-bottom: 20px;
}

.ad-slot-sidebar-mid {
    margin: 20px 0;
}

.ad-slot-sidebar-bottom {
    margin-top: 20px;
}

.ad-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-align: center;
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */
.widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c9a96e;
    color: #2c2c2c;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #444;
}

.widget a:hover {
    color: #c9a96e;
}

/* Popular posts widget */
.popular-post {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}

.popular-post-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-info {
    flex: 1;
    min-width: 0;
}

.popular-post-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-date {
    font-size: 0.75rem;
    color: #999;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination a,
.pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    background: #fff;
    color: #444;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pagination a:hover {
    background: #c9a96e;
    color: #fff;
}

.pagination .current {
    background: #c9a96e;
    color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #2c2c2c;
    color: #aaa;
    padding: 50px 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget .widget-title {
    color: #fff;
    border-bottom-color: #c9a96e;
}

.footer-widget a {
    color: #aaa;
}

.footer-widget a:hover {
    color: #c9a96e;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ============================================
   READ MORE / BUTTONS
   ============================================ */
.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #c9a96e;
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #a08050;
    color: #fff;
}

/* ============================================
   TAGS & CATEGORIES
   ============================================ */
.post-tags {
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 0.8rem;
    color: #666;
    margin: 0 5px 5px 0;
}

.post-tags a:hover {
    background: #c9a96e;
    color: #fff;
}

/* ============================================
   AUTHOR BOX
   ============================================ */
.author-box {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 30px 0;
}

.author-box .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-box .author-info h4 {
    margin-bottom: 8px;
    color: #2c2c2c;
}

.author-box .author-bio {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   RELATED POSTS
   ============================================ */
.related-posts {
    margin: 40px 0;
}

.related-posts-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c9a96e;
    color: #2c2c2c;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.related-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-post img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.related-post h4 {
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.related-post h4 a {
    color: #2c2c2c;
}

/* ============================================
   SOCIAL SHARE
   ============================================ */
.social-share {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background: #c9a96e;
    color: #fff;
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form {
    display: flex;
    gap: 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
}

.search-form button {
    padding: 10px 18px;
    background: #c9a96e;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 0.9rem;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 .error-title {
    font-size: 6rem;
    font-weight: 700;
    color: #c9a96e;
    line-height: 1;
}

.error-404 .error-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin: 20px 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        height: 350px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .single-post .entry-title {
        font-size: 1.5rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #c9a96e;
    color: #fff;
    padding: 8px 15px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.gallery-caption {
    font-size: 0.85rem;
    color: #666;
}

.bypostauthor {
    display: block;
}

/* Sticky post */
.sticky {
    position: relative;
}

.sticky::before {
    content: 'Featured';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c9a96e;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    text-transform: uppercase;
    z-index: 2;
}
