:root {
    --bg-color: #f8f9fa; /* Background utama tidak polosan putih */
    --card-bg: #ffffff;
    --text-main: #202124;
    --text-muted: #4d5156;
    --text-light: #70757a;
    --link-color: #1a0dab;
    --border-color: #dfe1e5;
    --primary-g: #4285f4;
    --primary-hover: #3b78e7;
    --danger-g: #ea4335;
    --warn-g: #fbbc05;
    --success-g: #34a853;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    font-family: 'Roboto', arial, sans-serif;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Header & Logo styling... (Sama seperti sebelumnya) */
.brand-logo { display: flex; align-items: center; justify-content: center; text-decoration: none; font-family: 'Product Sans', 'Roboto', sans-serif; font-weight: 500; letter-spacing: -1px; user-select: none; }
.brand-icon { margin-right: 8px; fill: var(--primary-g); animation: floatIcon 3s ease-in-out infinite; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.brand-logo span:nth-child(2) { color: var(--primary-g); } .brand-logo span:nth-child(3) { color: var(--danger-g); } .brand-logo span:nth-child(4) { color: var(--warn-g); } .brand-logo span:nth-child(5) { color: var(--primary-g); } .brand-logo span:nth-child(6) { color: var(--success-g); } .brand-logo span:nth-child(7) { color: var(--danger-g); }

.app-header { position: sticky; top: 0; background: var(--card-bg); padding: 20px 24px; border-bottom: 1px solid var(--border-color); box-shadow: 0 1px 6px rgba(32,33,36,0.08); display: flex; align-items: center; gap: 32px; z-index: 100; opacity: 0; transform: translateY(-20px); pointer-events: none; transition: all 0.4s ease; }
body.is-serp .app-header { opacity: 1; transform: translateY(0); pointer-events: auto; }
.app-header .brand-logo { font-size: 26px; } .app-header .brand-icon { width: 28px; height: 28px; }
.header-search-wrap { flex: 1; max-width: 692px; }

.app-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: 25vh; transition: opacity 0.3s ease; }
body.is-serp .app-main { display: none; }
.home-logo-wrap { margin-bottom: 35px; } .home-logo-wrap .brand-logo { font-size: 64px; letter-spacing: -2.5px; } .home-logo-wrap .brand-icon { width: 64px; height: 64px; }

.search-form { width: 100%; max-width: 584px; position: relative; z-index: 10; padding: 0 20px; }
.app-header .search-form { max-width: 100%; padding: 0; }
.search-box { display: flex; align-items: center; width: 100%; height: 48px; border: 1px solid var(--border-color); border-radius: 24px; padding: 0 16px 0 14px; background: #fff; transition: all 0.3s ease; }
.app-main .search-box { box-shadow: 0 2px 5px rgba(32,33,36,0.08); }
.search-box:hover, .search-box.focused { box-shadow: 0 2px 8px rgba(32,33,36,0.2); border-color: transparent; }
.search-icon { width: 22px; height: 22px; fill: #9aa0a6; margin-right: 10px; }
.search-input { flex: 1; height: 100%; border: none; outline: none; font-size: 16px; color: var(--text-main); background: transparent; }

/* Tombol Berwarna dan Responsive Mobile */
.home-buttons { display: flex; justify-content: center; margin-top: 30px; }
.btn-action { background-color: var(--primary-g); border: 1px solid var(--primary-g); border-radius: 24px; color: #ffffff; font-family: 'Product Sans', sans-serif; font-size: 15px; font-weight: 500; padding: 0 28px; height: 44px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.btn-action:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3); }

/* Hasil Pencarian dengan Efek Card (Tidak Polosan) */
.serp-container { display: none; width: 100%; max-width: 700px; padding: 25px 20px 80px 185px; animation: fadeIn 0.4s ease forwards; }
body.is-serp .serp-container { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.result-stats { color: var(--text-light); font-size: 14px; margin-bottom: 25px; display: none; }
.result-list { display: none; flex-direction: column; gap: 20px; }

/* Desain Card untuk Hasil */
.result-item { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.result-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-color: transparent; }
.result-item-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.result-icon { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid #ededed; background: #fff; padding: 2px; }
.result-url-box { display: flex; flex-direction: column; }
.result-sitename { font-size: 14px; color: var(--text-main); font-weight: 500; }
.result-domain { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.result-title { font-size: 20px; color: var(--link-color); margin: 0 0 8px 0; font-weight: 400; line-height: 1.3; }
.result-item:hover .result-title { text-decoration: underline; }
.result-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Skeleton Loader Style */
.skeleton-wrapper { display: none; flex-direction: column; gap: 20px; margin-top: 20px; }
.skeleton-item { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.skel-line { height: 14px; background: #f1f3f4; border-radius: 4px; position: relative; overflow: hidden; }
.skel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.skel-circle { width: 32px; height: 32px; border-radius: 50%; background: #f1f3f4; position: relative; overflow: hidden; }
.skel-title { height: 20px; width: 60%; background: #f1f3f4; border-radius: 4px; margin-bottom: 6px; position: relative; overflow: hidden; }
.skel-line::after, .skel-circle::after, .skel-title::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; transform: translateX(-100%); background-image: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,0.4) 20%, rgba(255,255,255,0.6) 60%, rgba(255,255,255,0)); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Footer */
.app-footer { background: #f2f2f2; border-top: 1px solid var(--border-color); margin-top: auto; color: var(--text-light); font-size: 14px; }
.footer-content { padding: 15px 30px; display: flex; flex-direction: column; gap: 10px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid #dadce0; padding-top: 15px; }
.footer-links a { color: var(--text-light); text-decoration: none; }
.footer-links a:hover { color: var(--text-main); }
body.is-serp .app-footer { display: none; } /* Sembunyikan footer di hasil pencarian agar bersih */

/* Media Queries Mobile */
@media (max-width: 850px) {
    .serp-container { padding-left: 20px; padding-right: 20px; margin: 0 auto; }
    .app-header { gap: 16px; padding: 12px 16px; flex-direction: column; align-items: flex-start; }
    .header-search-wrap { width: 100%; }
}
@media (max-width: 600px) {
    .app-main { padding-top: 15vh; }
    .home-logo-wrap .brand-logo { font-size: 46px; }
    .search-box { height: 46px; }
    /* Memastikan tombol mobile tampil lebar dan rapi */
    .home-buttons { flex-direction: column; width: 100%; padding: 0; }
    .btn-action { width: 100%; max-width: 100%; }
    .result-title { font-size: 18px; }
}