/*
Theme Name: Bloggugel
Theme URI: https://www.ahyari.net
Description: Child theme untuk GeneratePress yang meniru desain blog.google
Author: Jimmy Ahyari
Author URI: https://jim.my.id
Template: generatepress
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bloggugel
*/

/* Import parent theme styles */
@import url('../generatepress/style.css');

/* ========================================
   CUSTOM FONTS & TYPOGRAPHY
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --color-primary: #1a73e8;
  --color-primary-dark: #1557b0;
  --color-text: #202124;
  --color-text-light: #5f6368;
  --color-bg: #ffffff;
  --color-border: #e8eaed;
  --color-hover: #f8f9fa;
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --border-radius: 8px;
  --shadow-light: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  font-weight: 400;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  position: relative;
  top: auto;          
  z-index: 100;
}

.site-header .inside-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

.site-title a {
  color: var(--color-text);
}

.site-title a:hover {
  color: var(--color-primary);
}

/* Main Navigation */
.main-navigation {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a.current-menu-item {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.header-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
  font-size: 1.2rem;
}

.header-search-toggle:hover {
  color: var(--color-primary);
}

/* ========================================
   BUTTONS & FORMS
   ======================================== */
button,
.button,
input[type="button"],
input[type="submit"] {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover,
.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-light);
}

button:active,
.button:active,
input[type="button"]:active,
input[type="submit"]:active {
  transform: scale(0.98);
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  background-color: var(--color-bg);
  padding: 3rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero-section h1 {
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ========================================
   CONTENT CARDS & ARTICLES
   ======================================== */
.post,
.card,
.article-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.post:hover,
.card:hover,
.article-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--color-primary);
}

.post-header,
.card-header,
.article-header {
  padding: 1.5rem;
}

.post-title,
.card-title,
.article-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.post-title a,
.card-title a,
.article-title a {
  color: var(--color-text);
}

.post-title a:hover,
.card-title a:hover,
.article-title a:hover {
  color: var(--color-primary);
}

.post-excerpt,
.card-excerpt,
.article-excerpt {
  color: var(--color-text-light);
  margin: 0.5rem 0 1rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.post-meta,
.card-meta,
.article-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-meta span,
.card-meta span,
.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Featured Image */
.post-thumbnail,
.card-image,
.article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* ========================================
   GRID LAYOUTS
   ======================================== */
.posts-grid,
.articles-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .posts-grid,
  .articles-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SIDEBAR & WIDGETS
   ======================================== */
.sidebar {
  margin-top: 3rem;
}

.widget {
  background-color: var(--color-hover);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--color-text);
  display: block;
  padding: 0.5rem 0;
}

.widget a:hover {
  color: var(--color-primary);
  padding-left: 0.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background-color: var(--color-text);
  color: #ffffff;
  padding: 3rem 1rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-widget a {
  color: #e8eaed;
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.footer-widget a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #e8eaed;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .site-header .inside-header {
    flex-direction: column;
    gap: 1rem;
  }

  .main-navigation {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .main-navigation a {
    padding: 0.75rem 0;
  }

  .posts-grid,
  .articles-grid,
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-light);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .site-header,
  .site-footer,
  .sidebar {
    display: none;
  }

  body {
    background-color: #ffffff;
  }

  a {
    color: var(--color-text);
  }
}
