/* tathata.org - Main Stylesheet */
/* Buddhist Monk Robe Inspired Color Palette */

/* CSS Variables for Light Mode (Saffron & Gold) */
:root {
  /* Primary colors - Saffron/Orange tones */
  --primary: #FF8C00;           /* Saffron */
  --primary-light: #FFA500;     /* Light saffron */
  --primary-dark: #CC7000;      /* Deep saffron */
  
  /* Secondary colors - Burgundy/Maroon */
  --secondary: #8B2635;         /* Burgundy */
  --secondary-light: #A0475C;   /* Light burgundy */
  --secondary-dark: #6B1A28;    /* Deep burgundy */
  
  /* Accent colors - Ochre/Gold */
  --accent: #DAA520;            /* Goldenrod */
  --accent-light: #F4C430;      /* Saffron yellow */
  --accent-dark: #B8860B;       /* Dark goldenrod */
  
  /* Neutral colors */
  --bg-color: #FFF8F0;          /* Warm off-white */
  --text-color: #2C1810;        /* Dark brown */
  --header-bg: #FFE4C4;         /* Bisque */
  --border-color: #D4A574;      /* Tan */
  --card-bg: #FFFAF0;           /* Floral white */
  --input-bg: #FFFFFF;
  --input-border: #D4A574;
  --shadow: rgba(139, 38, 53, 0.15);
  
  /* Interactive elements */
  --link-color: #CC7000;
  --link-hover: #FF8C00;
  --button-bg: #FF8C00;
  --button-text: #FFFAF0;
  --button-hover: #FFA500;
}

/* Dark Mode (Deep Burgundy & Dark Orange) */
[data-theme="dark"] {
  /* Primary colors - Deep orange/saffron */
  --primary: #E67E22;
  --primary-light: #F39C12;
  --primary-dark: #CA6F1E;
  
  /* Secondary colors - Deep burgundy */
  --secondary: #641E16;
  --secondary-light: #7B241C;
  --secondary-dark: #4A0E0E;
  
  /* Accent colors - Muted gold */
  --accent: #B8860B;
  --accent-light: #DAA520;
  --accent-dark: #9B7409;
  
  /* Neutral colors */
  --bg-color: #1C0F0A;          /* Very dark brown */
  --text-color: #F5DEB3;        /* Wheat */
  --header-bg: #2C1810;         /* Dark brown */
  --border-color: #5D3A1A;      /* Brown */
  --card-bg: #2C1810;
  --input-bg: #3C2415;
  --input-border: #5D3A1A;
  --shadow: rgba(0, 0, 0, 0.5);
  
  /* Interactive elements */
  --link-color: #F39C12;
  --link-hover: #FFA500;
  --button-bg: #E67E22;
  --button-text: #FFFAF0;
  --button-hover: #F39C12;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 140, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 38, 53, 0.03) 0%, transparent 50%);
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(230, 126, 34, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(100, 30, 22, 0.05) 0%, transparent 50%);
}

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

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

/* Header */
header {
  background: linear-gradient(135deg, var(--header-bg) 0%, var(--bg-color) 100%);
  border-bottom: 3px solid var(--primary);
  padding: 1rem 0;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: 0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

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

nav a:hover {
  color: var(--link-hover);
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--button-hover);
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* Footer */
footer {
  background-color: var(--header-bg);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  transition: background-color 0.3s ease;
}

footer p {
  color: var(--text-color);
  font-size: 0.9rem;
}

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

footer a:hover {
  color: var(--link-hover);
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow);
}

/* Quote Card */
.quote-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 2rem auto;
  max-width: 600px;
  box-shadow: 0 6px 20px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: '☸';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 3rem;
  opacity: 0.1;
  color: var(--primary);
}

.quote-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.05;
  border-radius: 50%;
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.quote-author {
  text-align: right;
  color: var(--text-color);
  opacity: 0.8;
  font-size: 1.1rem;
}

.quote-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Forms */
form {
  max-width: 500px;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, background-color 0.3s ease;
}

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

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */
button,
.button {
  background: linear-gradient(135deg, var(--button-bg) 0%, var(--primary-light) 100%);
  color: var(--button-text);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow);
}

button:hover,
.button:hover {
  background: linear-gradient(135deg, var(--button-hover) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

/* Links */
a {
  color: var(--link-color);
}

a:hover {
  color: var(--link-hover);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

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

  nav ul {
    gap: 1rem;
    justify-content: center;
  }

  h1 {
    font-size: 2rem;
  }

  .quote-text {
    font-size: 1.2rem;
  }
}
