/*
Theme Name: FlashSEO 2026
Theme URI: https://example.com
Author: Gemini AI
Description: Super fast, SEO Friendly, Rank Math Compatible, Mobile First, Core Web Vitals Optimized.
Version: 2.0
Text Domain: flashseo
*/

/* --- 1. VARIABLES & RESET --- */
:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --primary-color: #0073aa;
    --link-color: #005b87;
    --container-width: 800px;
    --spacing: 1.5rem;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    font-size: 18px; /* Ukuran nyaman di HP */
    overflow-x: hidden;
}

/* --- 2. LAYOUT & HEADER --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.site-header {
    padding: var(--spacing) 0;
    border-bottom: 1px solid #eee;
    margin-bottom: var(--spacing);
}

.site-title a { 
    text-decoration: none; 
    color: #000; 
    font-weight: 900; 
    font-size: 1.5rem; 
}

/* --- 3. TYPOGRAPHY & ELEMENTS --- */
h1, h2, h3 { margin-bottom: 1rem; line-height: 1.3; font-weight: 700; color: #111; }
h1 { font-size: 2.2rem; } /* H1 Besar untuk SEO */
h2 { font-size: 1.8rem; }

a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin-bottom: 1.5rem; }

img { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; aspect-ratio: 16/9; }

/* Breadcrumbs (Rank Math) */
.rank-math-breadcrumb {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.8rem;
}
.rank-math-breadcrumb a { color: #666; text-decoration: none; }

/* --- 4. ACCESSIBILITY (Screen Reader) --- */
.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;
}
.skip-link:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
    clip: auto !important; clip-path: none;
    color: var(--primary-color);
    display: block; font-size: 1rem; font-weight: 700;
    height: auto; left: 5px; top: 5px;
    padding: 15px 23px; text-decoration: none; width: auto; z-index: 100000;
}

/* --- 5. POSTS GRID & META --- */
.post-item { margin-bottom: 2.5rem; }
.post-meta { font-size: 0.9rem; color: #555; margin-bottom: 0.8rem; }

/* --- 6. RELATED POSTS --- */
.related-posts {
    margin-top: 3rem; padding-top: 2rem; border-top: 4px solid #f0f0f0;
}
.related-posts h3 {
    font-size: 1.4rem; margin-bottom: 1.5rem;
    border-left: 5px solid var(--primary-color); padding-left: 10px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
.related-item {
    background: #f9f9f9; padding: 1rem; border-radius: 8px; border: 1px solid #eee;
}
.related-item h4 { font-size: 1.1rem; margin-bottom: 0.5rem; line-height: 1.4; }
.related-item h4 a { color: var(--text-color); }
.related-item h4 a:hover { color: var(--primary-color); }

/* --- 7. SEARCH PAGE --- */
.search-header {
    background: #f4faff; padding: 2rem; border-radius: 8px;
    margin-bottom: 2rem; border-left: 5px solid var(--primary-color);
}
.search-no-result {
    padding: 2rem; background: #fff5f5; border: 1px solid #ffdcdc;
    border-radius: 8px; margin-bottom: 2rem; color: #a00;
}

/* --- 8. FOOTER --- */
.site-footer {
    margin-top: 4rem; padding: 2rem 0; border-top: 1px solid #eee;
    text-align: center; font-size: 0.9rem; color: #666;
}