:root {
    --primary-color: #1a1a1a;
    --accent-color: #2563eb;
    --bg-color: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1100px;
    --post-width: 740px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header.site-header {
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

.logo-img {
    height: 150px;
    width: auto;
    display: block;
    transition: height 0.3s;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-color);
}

.search-item {
    margin-left: 10px;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-form input {
    padding: 8px 35px 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    width: 180px;
    transition: all 0.3s;
}

.search-form input:focus {
    width: 220px;
    outline: none;
    border-color: var(--accent-color);
}

.search-form button {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.search-form button:hover {
    color: var(--accent-color);
}

.admin-link {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px !important;
}

/* Homepage Hero */
.hero {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 48px;
    padding: 64px 0;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-card-image {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.post-card-content h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.post-card-content .excerpt {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Single Post Page */
.post-single {
    max-width: var(--post-width);
    margin: 64px auto;
    padding: 0 24px;
}

.post-single-header {
    text-align: center;
    margin-bottom: 48px;
}

.post-single-header h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.post-single-meta {
    margin-bottom: 40px;
}

.post-single-image {
    width: 100%;
    margin-bottom: 48px;
    border-radius: 16px;
    overflow: hidden;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 18px;
}

.post-content h2, .post-content h3 {
    font-weight: 700;
    line-height: 1.3;
    margin: 48px 0 24px;
}

.post-content h2 { font-size: 32px; }
.post-content h3 { font-size: 24px; }

.post-content ul, .post-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 12px;
}

.post-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 10px 0 10px 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-muted);
}

.post-content b, .post-content strong {
    font-weight: 700;
}

.post-content img {
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: var(--card-shadow);
}

/* Footer */
footer.site-footer {
    padding: 64px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 64px;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-img {
        height: 80px;
    }

    .menu-icon {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    .search-form {
        width: 100%;
    }

    .search-form input {
        width: 100% !important;
    }

    .menu-toggle:checked ~ .nav-menu {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }
    .post-single-header h1 {
        font-size: 28px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
    will-change: transform;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive Videos (YouTube) */
.post-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    margin: 30px 0;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* AdSense Containers */
.ad-container {
    margin: 40px auto;
    text-align: center;
    max-width: 100%;
}

.ad-placeholder {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    color: #94a3b8;
    padding: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner {
    margin-top: 0;
    margin-bottom: 60px;
}
