/* ============================================
   PAKBLOG - LAYOUT STYLESHEET
   Header, Footer, Hero, Grids
   ============================================ */

/* --- SITE HEADER --- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    min-height: 64px;
    flex-wrap: wrap;
}

/* --- LOGO --- */
.logo-container {
    flex-shrink: 0;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.site-logo-text span {
    color: var(--accent);
}

.site-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.site-tagline-display {
    font-size: var(--text-xs);
    color: var(--text-lighter);
    font-style: italic;
    display: block;
    margin-top: 2px;
}

/* --- NAVIGATION --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-grow: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-light);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent);
    background: var(--bg-light);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

/* --- HEADER ACTIONS --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--text-light);
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.menu-toggle {
    display: none;
}

/* --- MOBILE NAV --- */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: var(--space-4);
    gap: var(--space-1);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-link {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
    background: var(--bg-light);
    color: var(--accent);
}

/* --- SITE MAIN --- */
.site-main {
    flex: 1;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: var(--space-6) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-content:hover .hero-image {
    transform: scale(1.03);
}

.hero-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--accent);
    color: var(--text-white);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-text {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: var(--text-3xl);
    font-weight: 900;
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.hero-excerpt {
    font-size: var(--text-base);
    color: var(--text-light);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    font-size: var(--text-sm);
    color: var(--text-lighter);
}

.hero-author {
    font-weight: 600;
    color: var(--text-light);
}

.meta-dot {
    color: var(--text-lighter);
}

/* --- ARTICLES SECTION --- */
.articles-section {
    padding: var(--space-6) 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 900;
    white-space: nowrap;
    margin-bottom: 0;
}

.section-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    position: relative;
}

.section-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* --- ARTICLES GRID --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

/* --- ARTICLE CARD --- */
.article-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.article-card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.article-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.article-card-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: var(--accent);
    color: var(--text-white);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.article-card-body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}

.article-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.article-card-excerpt {
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-lighter);
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-light);
}

.article-card-author {
    font-weight: 600;
    color: var(--text-light);
}

/* --- FOOTER --- */
.site-footer {
    background: var(--primary);
    padding: var(--space-8) 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-6);
    padding-bottom: var(--space-8);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--text-white);
}

.footer-logo span {
    color: var(--accent);
}

.footer-tagline {
    color: var(--text-white-muted);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-3);
}

.footer-links a {
    display: block;
    color: var(--text-white-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-white-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
    transition: color var(--transition-fast);
}

.footer-contact-link:hover {
    color: var(--text-white);
}

.footer-contact-link i {
    color: var(--accent);
    width: 16px;
}

/* --- FOOTER BOTTOM --- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    padding: var(--space-4) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-text {
    color: var(--text-white-muted);
    font-size: var(--text-xs);
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    color: var(--text-white-muted);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--text-white);
}