/* =========================================
   Color Picker Studio - Main Stylesheet
   Last Updated: 2026-07-21
   ========================================= */

/* =========================================
   1. CSS VARIABLES (Website ke Main Colors & Fonts)
   ========================================= */
:root {
  /* Brand Colors - PINK THEME */
  --primary-color: #d946ef;       /* Pink - Main brand color */
  --secondary-color: #7c3aed;     /* Purple - Hover & accents */
  
  /* Background & Text Colors (Light Mode) */
  --bg-color: #ffffff;            /* Page background */
  --bg-secondary: #f9fafb;        /* Cards/sections background */
  --text-color: #1f2937;          /* Main text (Dark Gray) */
  --text-muted: #6b7280;          /* Secondary text */
  --border-color: #e5e7eb;        /* Borders */

  /* Typography - ONLY 3 FONTS (Performance Optimized) */
  --font-main: 'Sour Gummy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Sour Gummy', cursive;
  --font-reading: 'Sour Gummy', Georgia, serif;
  --base-font-size: 16px;
  
  /* Spacing & Layout */
  --container-width: 1200px;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* =========================================
   2. DARK MODE VARIABLES
   ========================================= */
body.dark-mode {
  --bg-color: #111827;
  --bg-secondary: #1f2937;
  --text-color: #f9fafb;
  --text-muted: #9ca3af;
  --border-color: #374151;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

/* =========================================
   3. RESET & BASE STYLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  font-size: var(--base-font-size);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* =========================================
   4. LAYOUT UTILITIES
   ========================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: visible !important; 
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* =========================================
   5. COMPONENTS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.input, .textarea, .select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.2);
}

/* =========================================
   6. NAVBAR & HEADER (FIXED: Pink color on ALL pages)
   ========================================= */
.navbar {
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* ✅ Logo - Pink Color on ALL Pages */
.logo,
.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  font-family: var(--font-heading);
  text-decoration: none;
}

.logo:hover,
.logo a:hover {
  color: var(--secondary-color) !important;
}

/* ✅ Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--primary-color) !important;  /* Pink color */
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--secondary-color) !important;  /* Purple on hover */
}
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-color);
}

.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: 60px;
  text-align: center;
}

/* =========================================
   7. ADS SPOTS
   ========================================= */
.ad-spot {
  width: 100%;
  max-width: 728px;
  margin: 20px auto;
  text-align: center;
  min-height: 90px;
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  overflow: visible !important; 
  box-sizing: border-box;
}

.ad-spot iframe {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  overflow: visible !important;
}

.ad-spot-below-tool {
  max-width: 728px; 
  min-height: 100px; 
  margin: 30px auto;
}

/* =========================================
   8. BLOG CONTENT
   ========================================= */
.article-content {
  font-family: var(--font-reading);
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content h2, 
.article-content h3 {
  font-family: var(--font-heading);
}

/* =========================================
   9. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-color);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    z-index: 999;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .ad-spot {
    max-width: 100%;
    min-height: 60px;
  }
}

/* =========================================
   10. PRINT STYLES
   ========================================= */
@media print {
  .navbar, .footer, .ad-spot, .hamburger {
    display: none !important;
  }
}