/* themes/google_search/style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
  --g-bg: #ffffff;
  --g-bg-alt: #f8f9fa;
  --g-text: #3c4043;
  --g-text-light: #70757a;
  --g-link: #1a0dab;
  --g-url: #006621;
  --g-border: #dfe1e5;
  --g-blue: #4285f4;
  --g-red: #ea4335;
  --g-yellow: #fbbc05;
  --g-green: #34a853;
  --g-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: var(--g-bg);
  color: var(--g-text);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* =========================================
   COVER PAGE (GOOGLE HOMEPAGE)
   ========================================= */
.g-cover {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--g-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
  padding: 20px;
}
.g-cover.open {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.g-logo {
  text-align: center;
  margin-bottom: 30px;
}
.g-logo h1 {
  font-size: 3rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -1px;
}
.g-logo span:nth-child(1) { color: var(--g-blue); }
.g-logo span:nth-child(2) { color: var(--g-red); }
.g-logo span:nth-child(3) { color: var(--g-yellow); }
.g-logo span:nth-child(4) { color: var(--g-blue); }
.g-logo span:nth-child(5) { color: var(--g-green); }
.g-logo span:nth-child(6) { color: var(--g-red); }

.g-search-box {
  width: 100%;
  max-width: 584px;
  background: #fff;
  border: 1px solid var(--g-border);
  border-radius: 24px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  box-shadow: none;
  transition: box-shadow 0.2s;
}
.g-search-box:hover {
  box-shadow: var(--g-shadow);
}
.g-search-icon {
  color: #9aa0a6;
  margin-right: 12px;
}
.g-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--g-text);
}
.g-search-mic {
  color: var(--g-blue);
  margin-left: 12px;
}

.g-buttons {
  margin-top: 30px;
  display: flex;
  gap: 12px;
}
.g-btn {
  background: #f8f9fa;
  border: 1px solid #f8f9fa;
  color: #3c4043;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
}
.g-btn:hover {
  border: 1px solid #dadce0;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  color: #202124;
}

/* =========================================
   MAIN APP (SEARCH RESULTS)
   ========================================= */
#mainApp {
  display: none;
  min-height: 100vh;
  padding-top: 110px; /* Space for fixed header */
  background: var(--g-bg);
}

.g-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  z-index: 100;
  padding: 15px 20px 0;
  display: flex;
  flex-direction: column;
}
.g-header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}
.g-header-logo {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.5px;
  white-space: nowrap;
  line-height: 1;
  transform: translateY(-2px);
}
.g-header-search {
  flex: 1;
  min-width: 0;
  max-width: 690px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  box-shadow: var(--g-shadow);
}
.g-tabs {
  display: flex;
  gap: 20px;
  padding-left: 10px;
}
.g-tab {
  padding: 10px 0;
  font-size: 13px;
  color: var(--g-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 3px solid transparent;
}
.g-tab.active {
  color: var(--g-blue);
  border-bottom: 3px solid var(--g-blue);
}

.g-container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .g-container {
    flex-direction: row;
    gap: 50px;
  }
  .g-results {
    flex: 1;
    max-width: 650px;
  }
  .g-knowledge-panel {
    width: 350px;
  }
}

.g-result-stats {
  font-size: 14px;
  color: var(--g-text-light);
  margin-bottom: 24px;
}

/* =========================================
   SEARCH RESULT BLOCK (DIV.G)
   ========================================= */
.g-block {
  margin-bottom: 30px;
}
.g-url {
  font-size: 12px;
  color: var(--g-text);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g-url cite {
  font-style: normal;
}
.g-title {
  font-size: 20px;
  color: var(--g-link);
  margin: 0 0 5px 0;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}
.g-title:hover {
  text-decoration: underline;
}
.g-desc {
  font-size: 14px;
  color: var(--g-text);
  line-height: 1.58;
}

/* =========================================
   KNOWLEDGE PANEL (MEMPELAI)
   ========================================= */
.g-knowledge-panel {
  border: 1px solid var(--g-border);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 30px;
}
.g-kp-header {
  display: flex;
  padding: 1px;
}
.g-kp-img {
  flex: 1;
  height: 200px;
  object-fit: cover;
  border-right: 1px solid #fff;
}
.g-kp-img:last-child {
  border-right: none;
}
.g-kp-title {
  padding: 20px;
  border-bottom: 1px solid var(--g-border);
}
.g-kp-title h2 {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 5px 0;
}
.g-kp-title span {
  font-size: 14px;
  color: var(--g-text-light);
}
.g-kp-info {
  padding: 20px;
  font-size: 14px;
  color: var(--g-text);
  line-height: 1.58;
}
.g-kp-info p {
  margin: 0 0 10px 0;
}
.g-kp-attr {
  display: flex;
  margin-bottom: 8px;
}
.g-kp-attr-label {
  font-weight: bold;
  width: 100px;
}

/* =========================================
   TOP STORIES / KISAH CINTA
   ========================================= */
.g-stories {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px;
  margin-top: 15px;
}
.g-story-card {
  min-width: 200px;
  border: 1px solid var(--g-border);
  border-radius: 8px;
  overflow: hidden;
}
.g-story-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.g-story-content {
  padding: 12px;
}
.g-story-title {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 5px 0;
  color: var(--g-link);
}
.g-story-date {
  font-size: 12px;
  color: var(--g-text-light);
}

/* =========================================
   IMAGE GRID / GALERI
   ========================================= */
.g-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 15px;
}
.g-image-item {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

/* =========================================
   FORMS (RSVP & UCAPAN)
   ========================================= */
.g-form-box {
  background: #fff;
  border: 1px solid var(--g-border);
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
}
.g-input, .g-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 15px;
  box-sizing: border-box;
  font-family: inherit;
}
.g-input:focus, .g-textarea:focus {
  border-color: var(--g-blue);
  outline: none;
}
.g-btn-primary {
  background: var(--g-blue);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.g-btn-primary:hover {
  background: #1a73e8;
}

/* =========================================
   REVIEWS (UCAPAN LIST)
   ========================================= */
.g-review {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.g-review-avatar {
  width: 40px;
  height: 40px;
  background: var(--g-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}
.g-review-content {
  flex: 1;
}
.g-review-name {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
}
.g-review-date {
  font-size: 12px;
  color: var(--g-text-light);
  margin-bottom: 8px;
}
.g-review-text {
  font-size: 14px;
  line-height: 1.5;
}

/* Countdown Snippet */
.g-snippet {
  border: 1px solid var(--g-border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}
.g-snippet-item {
  text-align: center;
}
.g-snippet-val {
  font-size: 24px;
  color: var(--g-text);
}
.g-snippet-label {
  font-size: 12px;
  color: var(--g-text-light);
}

.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border: 1px solid var(--g-border);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--g-shadow);
  z-index: 1000;
  color: var(--g-text);
}
