/*
Theme Name: IJIR Indonesia
Theme URI: https://ijir-indonesia.org
Author: IJIR Team
Author URI: https://ijir-indonesia.org
Description: Tema modern minimalis untuk portal artikel, opini, hasil penelitian, dan publikasi semi-akademik.
Version: 1.0.0
License: GPL v2 or later
Text Domain: ijir
*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #FFFFFF;
    --red: #C00000;
    --gray-light: #f5f5f5;
    --gray-border: #e0e0e0;
    --gray-text: #666666;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --container-width: 1200px;
    --header-height: 60px;
}

body {
    font-family: var(--font-primary);
    color: var(--black);
    background: var(--white);
    line-height: 1.5;
    font-size: 15px;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography - UKURAN DIPERKECIL */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--red);
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.site-title a {
    color: var(--black);
}

.custom-logo {
    max-height: 40px;
    width: auto;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 0;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Submenu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    list-style: none;
    border: 1px solid var(--gray-border);
    z-index: 999;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.sub-menu li {
    border-bottom: 1px solid var(--gray-border);
}

.sub-menu a {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    width: 22px;
    height: 2px;
    background: var(--black);
    position: relative;
    display: block;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--black);
    transition: all 0.2s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

/* Hero Section */
.hero-section {
    padding: 40px 0;
    background: var(--gray-light);
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.featured-content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.featured-excerpt {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-read-more {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-read-more:hover {
    background: var(--black);
    color: var(--white);
}

/* Grid Posts */
.section-title {
    font-size: 1.3rem;
    margin: 30px 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.post-card {
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

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

.post-content {
    padding: 15px;
}

.post-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--black);
}

.post-title a:hover {
    color: var(--red);
}

.post-meta {
    font-size: 0.7rem;
    color: var(--gray-text);
    margin-bottom: 0.75rem;
}

.post-excerpt {
    font-size: 0.8rem;
    color: var(--gray-text);
    line-height: 1.5;
}

/* Single Post */
.single-post {
    max-width: 720px;
    margin: 0 auto;
    padding: 30px 20px;
}

.post-header {
    margin-bottom: 25px;
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
}

.author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.post-date {
    font-size: 0.75rem;
    color: var(--gray-text);
}

.post-categories,
.post-tags {
    margin: 15px 0;
    font-size: 0.8rem;
}

.category-badge,
.tag-badge {
    display: inline-block;
    background: var(--gray-light);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    margin-right: 6px;
}

.post-content {
    font-size: 15px;
    line-height: 1.7;
}

.post-content h2 {
    font-size: 1.4rem;
    margin-top: 1.5em;
}

.post-content h3 {
    font-size: 1.2rem;
    margin-top: 1.3em;
}

.post-content p {
    margin-bottom: 1em;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-border);
}

.related-posts h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.related-post h4 {
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Sidebar */
.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.sidebar {
    padding: 15px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 8px;
    font-size: 0.85rem;
}

/* Author Page */
.author-header {
    background: var(--gray-light);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

.author-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.author-bio {
    max-width: 500px;
    margin: 15px auto;
    color: var(--gray-text);
    font-size: 0.85rem;
}

.author-stats {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--gray-text);
}

/* Footer */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 30px 0 15px;
    margin-top: 50px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.social-links a {
    color: var(--white);
    font-size: 0.9rem;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--red);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--red);
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 999;
    font-size: 16px;
}

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

.back-to-top:hover {
    background: var(--black);
}

/* Search */
.search-form {
    display: flex;
    gap: 8px;
}

.search-field {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    font-size: 0.85rem;
}

.search-submit {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 10px 0;
    font-size: 0.75rem;
    color: var(--gray-text);
}

/* Pagination */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 3px;
    border: 1px solid var(--gray-border);
    border-radius: 3px;
    font-size: 0.8rem;
}

.page-numbers.current {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* Author Avatar Styles */
.post-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 5px;
}

.post-author-info img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-text);
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    font-size: 0.8rem;
    color: var(--gray-text);
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.featured-date {
    font-size: 0.8rem;
}

/* Single Post Author Box */
.post-author-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--gray-light);
    border-radius: 8px;
    margin: 20px 0;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-bio-small {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-date {
    font-size: 0.75rem;
    color: var(--gray-text);
}

/* Category & Tags Labels */
.cat-label,
.tags-label {
    font-weight: 600;
    margin-right: 5px;
}

.post-categories,
.post-tags {
    margin: 15px 0;
    font-size: 0.8rem;
}

/* Related Post Meta */
.related-post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--gray-text);
}

.related-post-meta img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

/* Sidebar Author Widget (opsional) */
.widget_author_info {
    text-align: center;
}

.widget_author_info .author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: block;
}

/* Archive Author Info */
.archive-author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--gray-light);
    border-radius: 8px;
}

.archive-author-box .author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}
/* ============================================
   ELEGANT AUTHOR STYLES
   ============================================ */

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.75rem;
    color: var(--gray-text, #666);
    border-bottom: 1px solid var(--gray-border, #e0e0e0);
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--gray-text, #666);
}

.breadcrumb a:hover {
    color: var(--red, #C00000);
}

/* Post Header */
.post-header {
    margin-bottom: 30px;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Elegant Author Section (di bawah judul) */
.post-author-elegant {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-border, #e0e0e0);
}

.author-avatar-elegant img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--red, #C00000);
    padding: 2px;
}

.author-info-elegant {
    flex: 1;
}

.author-name-elegant {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--black, #000);
}

.author-title-elegant {
    font-size: 0.7rem;
    color: var(--gray-text, #666);
    margin-top: 2px;
}

.post-date-elegant {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--gray-text, #666);
}

.post-date-elegant svg {
    width: 14px;
    height: 14px;
}

/* Post Categories Elegant */
.post-categories-elegant {
    margin: 15px 0 0;
    font-size: 0.75rem;
}

.cat-label {
    font-weight: 600;
    color: var(--red, #C00000);
    margin-right: 8px;
}

.post-categories-elegant a {
    display: inline-block;
    background: var(--gray-light, #f5f5f5);
    padding: 3px 10px;
    border-radius: 15px;
    margin-right: 6px;
    font-size: 0.7rem;
    color: var(--gray-text, #666);
}

.post-categories-elegant a:hover {
    background: var(--red, #C00000);
    color: white;
}

/* Featured Image */
.post-featured-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Post Content */
.post-content {
    font-size: 16px;
    line-height: 1.75;
    color: #1a1a1a;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 1.5em 0 0.5em;
}

.post-content h3 {
    font-size: 1.25rem;
    margin: 1.3em 0 0.5em;
}

.post-content p {
    margin-bottom: 1.2em;
}

/* Post Tags Elegant */
.post-tags-elegant {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--gray-border, #e0e0e0);
    font-size: 0.75rem;
}

.tags-label {
    font-weight: 600;
    margin-right: 8px;
}

.post-tags-elegant a {
    display: inline-block;
    background: var(--gray-light, #f5f5f5);
    padding: 3px 10px;
    border-radius: 15px;
    margin-right: 6px;
    font-size: 0.7rem;
    color: var(--gray-text, #666);
}

.post-tags-elegant a:hover {
    background: var(--red, #C00000);
    color: white;
}

/* Author Bio Box (di bawah artikel) */
.author-bio-box {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: var(--gray-light, #f5f5f5);
    border-radius: 16px;
    margin: 40px 0;
    align-items: center;
}

.author-bio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--red, #C00000);
    padding: 2px;
}

.author-bio-content {
    flex: 1;
}

.author-bio-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black, #000);
}

.author-bio-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--gray-text, #666);
    margin-bottom: 10px;
}

.author-bio-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--red, #C00000);
    text-decoration: none;
}

.author-bio-link:hover {
    text-decoration: underline;
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-border, #e0e0e0);
}

.related-posts h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red, #C00000);
    display: inline-block;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.related-post {
    border: 1px solid var(--gray-border, #e0e0e0);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.related-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.related-post img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.related-post h4 {
    font-size: 0.85rem;
    margin: 10px;
    line-height: 1.4;
}

.related-post h4 a {
    color: var(--black, #000);
}

.related-post h4 a:hover {
    color: var(--red, #C00000);
}

.related-post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 10px 10px;
    font-size: 0.65rem;
    color: var(--gray-text, #666);
}

.related-post-meta img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

/* Responsive for Author Section */
@media (max-width: 768px) {
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-author-elegant {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .post-date-elegant {
        width: 100%;
        margin-left: 60px;
    }
    
    .author-bio-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .author-bio-avatar img {
        width: 70px;
        height: 70px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        padding: 15px;
        transition: left 0.2s ease;
        gap: 0;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--gray-border);
    }
    
    .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 15px;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-content h1 {
        font-size: 1.3rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .single-post {
        padding: 20px 15px;
    }
    
    .post-title {
        font-size: 1.4rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer Compact Fix */
.site-footer{
    padding:12px 0 8px !important;
    margin-top:30px !important;
}
.footer-widgets{
    gap:15px !important;
    margin-bottom:10px !important;
}
.footer-bottom{
    padding-top:10px !important;
}
.social-links{
    margin-bottom:6px !important;
}
.footer-menu,
.footer-nav{
    margin-top:6px !important;
}


/* Footer refined */
.footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    text-align:left;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,.12);
}

.footer-bottom .copyright{
    font-size:.85rem;
}

.social-links{
    display:flex;
    gap:12px;
    margin-bottom:0;
}

.social-links a{
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.25);
    border-radius:50%;
    text-decoration:none;
    font-size:16px;
    transition:.2s;
}

.social-links a:hover{
    transform:translateY(-2px);
}

@media (max-width:768px){
    .footer-bottom{
        flex-direction:column;
        gap:10px;
        text-align:center;
    }
}


/* SVG Social Icons */
.social-links a img{
    width:18px;
    height:18px;
    display:block;
    object-fit:contain;
}



/* === IJIR Polished Edition === */
:root{
--ijir-red:#c00000;
--ijir-shadow:0 4px 18px rgba(0,0,0,.08);
}
.container{max-width:1200px;margin:0 auto;padding:0 20px;}
.site-header{position:sticky;top:0;z-index:999;background:#fff;box-shadow:0 1px 8px rgba(0,0,0,.05);}
.post-card,.article-card,.featured-post{
transition:transform .25s ease, box-shadow .25s ease;
}
.post-card:hover,.article-card:hover,.featured-post:hover{
transform:translateY(-4px);
box-shadow:var(--ijir-shadow);
}
.entry-title a,.post-title a{
text-decoration:none;
}
.entry-title a:hover,.post-title a:hover{
color:var(--ijir-red);
}
img{
max-width:100%;
height:auto;
}
.site-footer{
margin-top:40px;
}
.footer-bottom{
display:flex;
justify-content:space-between;
align-items:center;
gap:15px;
}
@media(max-width:768px){
.footer-bottom{flex-direction:column;}
.site-title{font-size:1.4rem;}
	.post-meta{
    font-size:14px;
    color:#666;
    margin-bottom:12px;
}

/* Author Avatar */
.author-meta{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
}

.author-meta img.avatar{
    width:24px;
    height:24px;
    border-radius:50%;
    object-fit:cover;
}

.author-name{
    font-weight:600;
    color:#222;
}

.meta-separator{
    color:#999;
}

.post-excerpt{
    ...
}
}
