/* Portfolio Site Styles */

/* Sunnier Design Theme - Light Mode (CSS Custom Properties) */
:root {
  /* Brand Colors - Sunnier Design */
  --brand-yellow-bright: #ffdf5e;
  /* Bright yellow */
  --brand-coral: #fea16a;
  /* Coral/salmon */
  --brand-cream: #fff3cd;
  /* Cream/light yellow */
  --brand-golden: #fec56e;
  /* Golden yellow */
  --brand-peach: #fcb46a;
  /* Peach */

  /* Background Colors */
  --bg-primary: #fff3cd;
  /* Brand cream background */
  --bg-surface: #ffffff;
  /* White surface for cards */
  --bg-footer: #2a1f0f;
  /* Dark warm brown footer */

  /* Text Colors */
  --text-primary: #2a1f0f;
  /* Dark brown for headings/primary text */
  --text-secondary: #6b5842;
  /* Medium warm brown for secondary text */
  --text-on-dark: #fff3cd;
  /* Cream text on dark backgrounds */

  /* Accent Colors */
  --accent-primary: #fea16a;
  /* Brand coral for primary accents */
  --accent-hover: #fcb46a;
  /* Brand peach for hover states */
  --accent-light: #fec56e;
  /* Brand golden for subtle accents */
  --accent-bright: #ffdf5e;
  /* Brand bright yellow for highlights */

  /* Border & Shadow */
  --border-color: #fec56e;
  /* Golden yellow borders */
  --shadow-light: rgba(254, 161, 106, 0.1);
  --shadow-medium: rgba(254, 161, 106, 0.15);
  --shadow-hover: rgba(254, 161, 106, 0.25);

  /* Form Status Colors */
  --success-bg: #e8f5e3;
  /* Light green background */
  --success-text: #2d5016;
  /* Dark green text */
  --success-border: #b8d4a8;
  /* Light green border */
  --error-bg: #ffe8e3;
  /* Light red background */
  --error-text: #8b1e0f;
  /* Dark red text */
  --error-border: #ffb8a8;
  /* Light red border */

  /* Interactive Elements */
  --input-border: #fec56e;
  /* Golden border for inputs */
  --input-focus: #fea16a;
  /* Coral focus color */
}

/* Sunnier Design Theme - Dark Mode (Activated via html.dark-mode class) */
html.dark-mode {
  /* Background Colors */
  --bg-primary: #1a140a;
  /* Very dark warm brown background */
  --bg-surface: #2a1f0f;
  /* Dark warm surface for cards */
  --bg-footer: #0f0a05;
  /* Nearly black footer */

  /* Text Colors */
  --text-primary: #fff3cd;
  /* Brand cream for primary text */
  --text-secondary: #d4b896;
  /* Muted warm beige for secondary */
  --text-on-dark: #fff3cd;
  /* Cream on dark backgrounds */

  /* Accent Colors */
  --accent-primary: #ffdf5e;
  /* Bright yellow for primary accents */
  --accent-hover: #fec56e;
  /* Golden yellow on hover */
  --accent-light: #fcb46a;
  /* Peach for subtle accents */
  --accent-bright: #fea16a;
  /* Coral for highlights */

  /* Border & Shadow */
  --border-color: #4a3820;
  /* Dark warm border */
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --shadow-hover: rgba(255, 223, 94, 0.2);

  /* Form Status Colors */
  --success-bg: #1a2815;
  /* Dark green background */
  --success-text: #b8d4a8;
  /* Light green text */
  --success-border: #2a3820;
  /* Dark green border */
  --error-bg: #2a1810;
  /* Dark red background */
  --error-text: #ffb8a8;
  /* Light red text */
  --error-border: #3a2820;
  /* Dark red border */

  /* Interactive Elements */
  --input-border: #4a3820;
  /* Dark warm input border */
  --input-focus: #ffdf5e;
  /* Bright yellow focus */
}

/* Fonts */
.nunito-regular {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.ultra-regular {
  font-family: "Ultra", serif;
  font-weight: 400;
  font-style: normal;
}

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

body {
  font-family: Nunito, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.6;
  font-style: normal;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

/* Header */
.site-header {
  background-color: var(--bg-surface);
  box-shadow: 0 2px 4px var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-title {
  font-family: 'Ultra', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, serif;
  font-size: 1.5rem;
  font-weight: 400;
  font-style: normal;
  color: var(--text-primary);
  text-decoration: none;
}

.site-logo {
  display: block;
  height: 60px;
}

.site-logo img {
  height: 100%;
  width: auto;
  display: block;
}

.site-logo .logo-dark {
  display: none;
}

html.dark-mode .site-logo .logo-light {
  display: none;
}

html.dark-mode .site-logo .logo-dark {
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-primary);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Home Page */
.home {
  text-align: center;
  padding: 4rem 0;
}

.home h1 {
  font-family: 'Ultra', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, serif;
  font-size: 3rem;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 1rem;
}

.home-links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  background: var(--bg-surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-medium);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px var(--shadow-hover);
  border-color: var(--accent-light);
}

.gallery-item a {
  text-decoration: none;
  color: inherit;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.gallery-item h2 {
  padding: 1rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.gallery-item p {
  padding: 0 1rem 1rem;
  color: var(--text-secondary);
}

/* Single Page */
.single-page {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.single-page h1 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.featured-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
  border: 2px solid var(--border-color);
}

.content {
  margin-top: 2rem;
  line-height: 1.8;
  color: var(--text-primary);
}

/* Contact Form */
.contact-page {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-medium);
  border: 1px solid var(--border-color);
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--input-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--input-focus);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--accent-primary);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* Dark mode button text override for better contrast */
html.dark-mode .btn {
  color: var(--bg-primary);
}

/* Form Status Messages */
.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  display: none;
}

.form-status.success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 2px solid var(--success-border);
  display: block;
}

.form-status.error {
  background-color: var(--error-bg);
  color: var(--error-text);
  border: 2px solid var(--error-border);
  display: block;
}

/* Footer */
.site-footer {
  background-color: var(--bg-footer);
  color: var(--text-on-dark);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.site-footer a {
  color: var(--accent-light);
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* Theme Toggle Button */
#themeToggle {
  background: none;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#themeToggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

#themeToggle:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Theme toggle icon */
.theme-icon {
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .site-logo {
    height: 50px;
  }

  .nav-menu {
    gap: 1rem;
  }

  .home h1 {
    font-size: 2rem;
  }

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

  #themeToggle {
    font-size: 0.875rem;
    padding: 0.4rem 0.8rem;
  }
}
