/* Cool Oil Check - Essential Oil Diffuser Compatibility Checker */
:root {
  --primary: #2d5a3d;
  --primary-light: #4a7c5c;
  --primary-dark: #1e3d2a;
  --secondary: #f4e4c1;
  --accent: #c9a962;
  --warning: #d4a373;
  --danger: #b85c38;
  --safe: #5c8a4d;
  --text: #333;
  --text-light: #666;
  --bg: #fafaf8;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  font-size: 2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Checker Tool */
.checker-section {
  padding: 60px 20px;
  background: var(--white);
}

.checker-container {
  max-width: 900px;
  margin: 0 auto;
}

.checker-container h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.checker-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
}

.checker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.checker-panel {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 25px;
  border: 2px solid #e8e8e8;
}

.checker-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.checker-panel select {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s;
}

.checker-panel select:focus {
  outline: none;
  border-color: var(--primary);
}

.check-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 18px 40px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.check-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.check-btn:active {
  transform: translateY(0);
}

/* Results */
.result-box {
  margin-top: 40px;
  padding: 30px;
  border-radius: var(--radius);
  display: none;
}

.result-box.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.result-box.safe {
  background: #e8f5e9;
  border: 2px solid var(--safe);
}

.result-box.caution {
  background: #fff8e1;
  border: 2px solid var(--warning);
}

.result-box.warning {
  background: #ffebee;
  border: 2px solid var(--danger);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.result-icon {
  font-size: 2.5rem;
}

.result-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.result-box.safe .result-title { color: var(--safe); }
.result-box.caution .result-title { color: var(--warning); }
.result-box.warning .result-title { color: var(--danger); }

.result-details {
  margin-bottom: 20px;
}

.result-details h4 {
  margin-bottom: 10px;
  color: var(--text);
}

.result-details ul {
  margin-left: 20px;
}

.result-details li {
  margin-bottom: 8px;
}

.product-recommendation {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-top: 20px;
}

.product-recommendation h4 {
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ff9900;
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.2s;
}

.product-link:hover {
  background: #e68a00;
  text-decoration: none;
}

/* Oil Guide Section */
.oil-guide {
  padding: 60px 20px;
  background: var(--secondary);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-dark);
}

.oil-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.oil-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.oil-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.oil-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.oil-emoji {
  font-size: 2rem;
}

.oil-card h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.oil-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.compatibility-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-safe {
  background: #e8f5e9;
  color: var(--safe);
}

.badge-caution {
  background: #fff8e1;
  color: #b58b00;
}

/* Diffuser Types Section */
.diffuser-types {
  padding: 60px 20px;
}

.diffuser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.diffuser-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.diffuser-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.diffuser-content {
  padding: 25px;
}

.diffuser-content h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.diffuser-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.diffuser-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  font-size: 0.9rem;
}

.pros h4, .cons h4 {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.pros h4 { color: var(--safe); }
.cons h4 { color: var(--danger); }

.pros ul, .cons ul {
  list-style: none;
}

.pros li::before {
  content: '+ ';
  color: var(--safe);
  font-weight: bold;
}

.cons li::before {
  content: '- ';
  color: var(--danger);
  font-weight: bold;
}

/* Safety Tips */
.safety-section {
  padding: 60px 20px;
  background: #fff5f5;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.safety-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  border-left: 4px solid var(--danger);
}

.safety-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--danger);
  margin-bottom: 10px;
}

.safety-card p {
  color: var(--text-light);
}

/* Products Section */
.products-section {
  padding: 60px 20px;
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  border: 2px solid #e8e8e8;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.product-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.product-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.amazon-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #ff9900;
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.2s;
}

.amazon-btn:hover {
  background: #e68a00;
  text-decoration: none;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 40px 20px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  margin-bottom: 15px;
  color: var(--accent);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.affiliate-disclosure {
  max-width: 800px;
  margin: 20px auto 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow);
  }

  nav ul.show {
    display: flex;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .checker-grid {
    grid-template-columns: 1fr;
  }

  .diffuser-pros-cons {
    grid-template-columns: 1fr;
  }
}

/* Page-specific styles */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-content h2 {
  color: var(--primary-dark);
  margin: 30px 0 15px;
}

.page-content p {
  margin-bottom: 15px;
}

.page-content ul, .page-content ol {
  margin: 15px 0 15px 25px;
}

.page-content li {
  margin-bottom: 8px;
}

/* Tables */
.oil-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.oil-table th, .oil-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.oil-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.oil-table tr:hover {
  background: var(--bg);
}

.status-safe { color: var(--safe); font-weight: 600; }
.status-caution { color: var(--warning); font-weight: 600; }
.status-avoid { color: var(--danger); font-weight: 600; }
