/* Global site styles - Modern UI */
:root {
  /* Warm Coral & Deep Navy Theme */
  --primary-color: #FF6B6B; /* Coral */
  --primary-hover: #E55A5A; /* Darker coral */
  --secondary-color: #0B1220; /* Deep navy background */
  --surface-color: #0F1724; /* Card / surface */
  --accent-color: #FFD166; /* Warm accent */
  --light-gray: #F7F3F1; /* Soft sand background for light areas */
  --border-color: #1f2937; /* Subtle dark border */
  --text-color: #E6EEF3; /* Light text on dark surfaces */
  --text-light: #ffffff;
  --text-muted: #94a3b8;
  --content-text: #24303a; /* dark content text for light backgrounds */
  --muted-btn: #6B7280; /* secondary button neutral */
  --muted-btn-hover: #4B5563;
  --card-shadow: 0 8px 24px rgba(2, 6, 23, 0.45);
  --success-bg: #e7f9ee;
  --success-border: #c8f6d8;
  --success-text: #084a23;
  --error-bg: #fff2f1;
  --error-border: #f6c8c8;
  --error-text: #7a2424;
  --info-color: #3B82F6; /* Blue for info buttons */
  --info-hover: #2563EB; /* Darker blue on hover */
  --danger-color: #EF4444; /* Red for danger buttons */
  --danger-hover: #DC2626; /* Darker red on hover */
  --warning-color: #F59E0B; /* Amber for warning buttons */
  --warning-hover: #D97706; /* Darker amber on hover */
  --border-radius: 8px;
  --font-main: 'Poppins', 'Segoe UI', sans-serif;
}


html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  background: var(--secondary-color);
  color: var(--text-color);
}

/* Make main expand to push footer to bottom */
main {
  flex: 1 0 auto;
  width: 100%;
}

/* Header / navigation baseline */
header {
  background: var(--surface-color);
  color: var(--text-color);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-color); 
}
header h1 { margin: 0; font-size: 1.75em; font-weight: 700; }
header h1 a { color: inherit; text-decoration: none; }
nav { display: flex; align-items: center; gap: 20px; }
nav a { color: var(--text-color); text-decoration: none; font-weight: 500; transition: color 0.2s; position: relative; }
nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 50%; background-color: var(--primary-color); transition: all 0.3s ease-in-out; }
nav a:hover { color: var(--primary-color); }
nav a:hover::after { width: 100%; left: 0; }
.search-form { display: flex; align-items: center; }
.search-form {
  display: flex;
  align-items: center;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 20px; /* Fully rounded corners */
  padding: 2px;
  transition: border-color 0.2s;
}
.search-form:focus-within {
  border-color: var(--primary-color); /* Highlight on focus */
}
.search-form input { padding: 8px 12px; border: none; background: transparent; color: var(--text-color); font-size: 1em; outline: none; flex-grow: 1; }
  .search-form input::placeholder { color: var(--text-muted); }
.search-form button { background: var(--primary-color); color: var(--text-light); border: none; padding: 7px 14px; border-radius: 18px; /* Rounded to fit parent */ font-weight: bold; cursor: pointer; transition: background-color 0.2s; }
.search-form button:hover { background-color: var(--primary-hover); }

/* Footer layout - centered, always at bottom of page */
footer {
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 18px 16px;
  flex-shrink: 0; /* don't let footer shrink */
}

/* Detailed site footer styles for .site-footer (used in footer.php) */
.site-footer { background: linear-gradient(180deg, var(--secondary-color), var(--surface-color)); color: var(--text-color); padding: 36px 16px; }
.site-footer .footer-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width:1100px; margin: 0 auto; }
.site-footer .footer-section h4 { margin-top:0; color: var(--text-light); margin-bottom: 8px; font-size: 1.05rem; }
.site-footer .footer-section p, .site-footer .footer-section li, .site-footer .footer-section a { color: var(--text-muted); font-size: 0.95rem; }
.site-footer .footer-section ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-section ul li { margin-bottom: 6px; }
.site-footer .footer-section ul li a { color: var(--text-muted); text-decoration: none; }
.site-footer .footer-section .social-icons a { margin-right: 10px; color: var(--text-muted); text-decoration: none; display:inline-block; }
.site-footer .newsletter-form { display:flex; gap:8px; margin-top:8px; }
.site-footer .newsletter-form input[type="email"] { flex:1; padding:8px 10px; border-radius:6px; border:1px solid rgba(255,255,255,0.06); background:rgba(255,255,255,0.03); color:var(--text-light); }
.site-footer .newsletter-form button { padding:8px 12px; border-radius:6px; border:none; background:var(--primary-color); color:var(--text-light); font-weight:600; cursor:pointer; }
.site-footer .footer-bottom { text-align:center; margin-top:20px; color:var(--text-muted); font-size:0.95rem; }

@media (max-width: 900px) {
  .site-footer .footer-container { grid-template-columns: 1fr; }
  .site-footer .newsletter-form { flex-direction: column; }
}

/* Utility containers used across pages */
.wrap { max-width: 1200px; margin: 0 auto; }

/* Small responsive utilities */
@media (max-width: 768px) {
  header { flex-direction: column; align-items: flex-start; }
  header h1 { font-size: 1.5rem; }
  .search-form { width: 100%; margin-top: 12px; }
  nav { width: 100%; justify-content: space-between; margin-top: 12px; font-size: 0.9rem; }
}
