/*
Theme Name: Ketua Thema
Description: Simple theme for Hallo Ketua plugin - Header, Footer, and Shortcode display only
Version: 1.0.0
Author: Your Name
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Header Styles */
.hk-header {
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.hk-logo-name {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hk-logo {
    height: 40px;
    object-fit: contain;
}

.hk-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.hk-hamburger {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.hk-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.hk-menu a {
    color: var(--hk-font);
    text-decoration: none;
}

.hk-menu a:hover {
    opacity: 0.8;
}

.site-content {
    flex: 1;
}

/* Full-width override for homepage */
.site-content .hk-homepage {
    margin: 0;
    padding: 0;
    width: 100%;
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Remove padding when homepage inside */
.content-inner:has(.hk-homepage) {
    padding: 0;
    max-width: 100%;
}

.site-footer {
    background: #09293c;
    color: #fff;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hk-section-bg, #f8f6f0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--hk-icon, #80a5b4);
    border-top: 5px solid var(--hk-primary, #05293c);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#preloader.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Bottom Sticky Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--hk-primary, #05293c);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 999;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--hk-icon, #80a5b4);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--hk-button, #eaee25);
    transform: translateY(-2px);
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.bottom-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--hk-icon, #80a5b4);
}

/* Add padding to body to prevent content hiding behind bottom nav */
body {
    padding-bottom: 70px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hk-hamburger {
        display: block;
    }

    .hk-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--hk-primary);
        padding: 1rem;
    }

    .hk-menu.active {
        display: flex;
    }
}
