/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

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

/* Theme Variables */
:root {
  /* Light Theme (Default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent-color: #0066cc;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --accent-color: #4a90e2;
  --border-color: #444444;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme="sepia"] {
  --bg-primary: #f4f1e8;
  --bg-secondary: #ede8d6;
  --text-primary: #5d4037;
  --text-secondary: #795548;
  --text-muted: #8d6e63;
  --accent-color: #bf5722;
  --border-color: #d7ccc8;
  --shadow-color: rgba(93, 64, 55, 0.1);
}

[data-theme="parchment"] {
  --bg-primary: #faf6f0;
  --bg-secondary: #f0e6d2;
  --text-primary: #3e2723;
  --text-secondary: #5d4037;
  --text-muted: #795548;
  --accent-color: #8d4004;
  --border-color: #d7ccc8;
  --shadow-color: rgba(62, 39, 35, 0.1);
}

[data-theme="midnight"] {
  --bg-primary: #0f1419;
  --bg-secondary: #1e2328;
  --text-primary: #e6f1ff;
  --text-secondary: #c5d4ed;
  --text-muted: #8a99b3;
  --accent-color: #36a9ae;
  --border-color: #2c3539;
  --shadow-color: rgba(0, 0, 0, 0.4);
}

[data-theme="sunset"] {
  --bg-primary: #fff4e6;
  --bg-secondary: #ffe0b3;
  --text-primary: #8b4513;
  --text-secondary: #a0522d;
  --text-muted: #cd853f;
  --accent-color: #ff6b35;
  --border-color: #deb887;
  --shadow-color: rgba(139, 69, 19, 0.1);
}

[data-theme="military"] {
  --bg-primary: #3D4A33;
  --bg-secondary: #4a5a40;
  --text-primary: #F3EEE5;
  --text-secondary: #e5dfd6;
  --text-muted: #A28E8C;
  --accent-color: #D78B34;
  --accent-secondary: #AC6291;
  --accent-tertiary: #5A8CB4;
  --border-color: #556b49;
  --shadow-color: rgba(61, 74, 51, 0.5);
}

body {
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Font Family Switching */
[data-font="Inter"] {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-font="Merriweather"] {
  --font-family: 'Merriweather', Georgia, serif;
}

[data-font="Roboto"] {
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-font="Georgia"] {
  --font-family: Georgia, 'Times New Roman', serif;
}

[data-font="Times"] {
  --font-family: 'Times New Roman', Times, serif;
}

[data-font="Fira"] {
  --font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-font="Inconsolata"] {
  --font-family: 'Inconsolata', 'Courier New', monospace;
}

[data-font="Source"] {
  --font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 1em;
  color: var(--text-primary);
}

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

a:hover {
  text-decoration: underline;
}

/* Site Header */
.site-header {
  margin-bottom: 2rem;
  padding: 2rem 0;
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header .header-content {
  width: 100%;
}

/* Header Layout Options */
.site-header.header-centered {
  text-align: center;
}

.site-header.header-centered .header-main {
  text-align: center;
}

.site-header.header-left-aligned {
  text-align: left;
}

.site-header.header-left-aligned .header-main {
  text-align: left;
}

.site-header.header-left-title-right-description .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  flex-wrap: wrap;
  gap: 2rem;
}

.site-header.header-left-title-right-description .header-left {
  flex: 0 0 auto;
}

.site-header.header-left-title-right-description .header-right {
  flex: 1;
  text-align: right;
  max-width: 500px;
}

.site-header.header-left-title-right-description .site-title {
  margin-bottom: 0;
}

.site-header.header-left-title-right-description .site-description {
  margin: 0;
}

/* Responsive adjustments for split layout */
@media (max-width: 768px) {
  .site-header.header-left-title-right-description .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .site-header.header-left-title-right-description .header-right {
    text-align: left;
    max-width: none;
  }
}

.site-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.site-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-title-link:hover {
  color: var(--primary-color, #007bff);
  text-decoration: none;
}

.site-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Responsive title sizing */
@media (max-width: 768px) {
  .site-title {
    font-size: 2rem;
  }
  
  .site-description {
    font-size: 1rem;
  }
}

/* Navigation */
.main-nav {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.main-nav a {
  color: var(--text-secondary);
  margin: 0 0.5rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text-primary);
}

/* User Blog Site Navigation - Simple pipe-separated menu */
.site-nav {
  background: var(--background-secondary, #f8f9fa);
  border-bottom: 1px solid var(--border-color, #dee2e6);
  margin-bottom: 2rem;
  padding: 1rem 0;
  text-align: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-item {
  color: var(--text-secondary, #6c757d);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: var(--primary-color, #007bff);
  text-decoration: none;
}

.nav-item.active {
  color: var(--primary-color, #007bff);
  font-weight: 600;
}

.nav-item.rss-link {
  color: #ff6600;
}

.nav-item.rss-link:hover {
  color: #e55a00;
}

.nav-separator {
  color: var(--text-secondary, #6c757d);
  margin: 0 0.5rem;
  font-weight: 300;
}

/* Social Links in Navigation */
.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: 2rem;
}

.social-link {
  color: var(--text-secondary, #6c757d);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--primary-color, #007bff);
  text-decoration: none;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .site-nav .container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .social-links {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .nav-separator {
    margin: 0 0.25rem;
  }
  
  .nav-item {
    padding: 0.25rem;
  }
}

/* Post List */
.post-list {
  max-width: 600px;
  margin: 0 auto;
}

.year-heading {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 2rem 0 1rem 0;
  color: var(--text-primary);
}

.post-summary {
  display: flex;
  margin-bottom: 0.5rem;
  align-items: baseline;
}

.post-date {
  color: #666;
  font-size: 0.9rem;
  width: 60px;
  flex-shrink: 0;
  margin-right: 1rem;
}

.post-link {
  color: #0066cc;
  flex: 1;
}

.post-link:hover {
  text-decoration: underline;
}

.no-posts {
  text-align: center;
  color: #666;
  font-style: italic;
  margin: 2rem 0;
}

/* Individual Post */
.post-full {
  max-width: 700px;
  margin: 0 auto;
}

/* Site Content Area */
.site-content {
  min-height: 60vh;
  padding: 2rem 0;
}

.site-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Default Blog Content Styling */
.post-list {
  max-width: 700px;
  margin: 0 auto;
}

.post-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color, #dee2e6);
}

.post-item:last-child {
  border-bottom: none;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-title a {
  color: var(--text-primary, #212529);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--primary-color, #007bff);
  text-decoration: underline;
}

.post-date {
  color: var(--text-secondary, #6c757d);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.post-excerpt {
  color: var(--text-secondary, #6c757d);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary-color, #007bff);
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* Empty State */
.no-posts {
  text-align: center;
  color: var(--text-secondary, #6c757d);
  font-style: italic;
  margin: 3rem 0;
  font-size: 1.1rem;
}

/* Site Footer */
.site-footer {
  background: var(--background-secondary, #f8f9fa);
  border-top: 1px solid var(--border-color, #dee2e6);
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-footer .footer-content p {
  margin: 0;
  color: var(--text-secondary, #6c757d);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--primary-color, #007bff);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.post-content {
  line-height: 1.7;
  font-size: 1.1rem;
}

.post-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-content pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
}

.post-content blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #666;
  font-style: italic;
}

.post-content ul, .post-content ol {
  margin: 1rem 0 1rem 2rem;
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

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

.field {
  margin-bottom: 1.75rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.field-input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.95rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: 'Monaco', 'Menlo', monospace;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus, .field-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.05);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.95rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.05);
}

.field small {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin-right: 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: #0066cc;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

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

/* Error Messages */
.error-messages {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.error-messages h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.error-messages ul {
  margin-left: 1.5rem;
}

/* Flash Messages */
.flash {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
}

.flash-notice {
  background-color: #d4edda;
  color: #155724;
}

.flash-alert {
  background-color: #f8d7da;
  color: #721c24;
}

/* Popup Flash Messages */
.flash-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
  box-shadow: 0 4px 12px var(--shadow-color);
  border-left: 4px solid;
  animation: slideInRight 0.3s ease-out;
}

.flash-popup.flash-notice {
  border-left-color: #28a745;
}

.flash-popup.flash-alert {
  border-left-color: #dc3545;
}

.flash-dismissing {
  animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Legacy support - remove these eventually */
.notice {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
}

.alert {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
}

/* Delete Link */
.delete-link {
  color: #dc3545;
}

.delete-link:hover {
  color: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  
  .site-title {
    font-size: 2rem;
  }
  
  .post-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .post-date {
    width: auto;
    margin-bottom: 0.25rem;
    margin-right: 0;
  }
  
  .post-title {
    font-size: 1.5rem;
  }
  
  .main-nav {
    font-size: 0.9rem;
  }
  
  .footer-content {
    padding: 0 1rem;
  }
  
  .footer-main {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .social-links {
    gap: 0.5rem;
  }
  
  .social-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Auth Container for Centering */
.auth-container {
  width: 100%;
  max-width: 600px;
  min-width: 320px;
  margin: 0 auto !important;
  display: block !important;
  position: relative;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Devise Forms */
.devise-form {
  width: 100%;
  margin: 0;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--bg-primary);
  box-shadow: 0 4px 20px var(--shadow-color);
}

.devise-form h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
}

.devise-form .field {
  margin-bottom: 1.5rem;
}

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

.devise-form .actions {
  text-align: center;
  margin-top: 2rem;
}

.devise-form .btn {
  min-width: 150px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Subdomain Input Group */
.subdomain-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bg-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subdomain-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.subdomain-input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 1;
  margin: 0;
  padding: 1rem 0.75rem;
}

.subdomain-input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.subdomain-suffix {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 1rem 0.75rem;
  font-size: 1rem;
  white-space: nowrap;
  border-left: 1px solid var(--border-color);
}

.field-help {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.3;
}

.field-help-success {
  color: #28a745;
}

.field-help-error {
  color: #dc3545;
}

.field-help-neutral {
  color: var(--text-muted);
}

.devise-links {
  text-align: center;
  margin-top: 1rem;
}

.devise-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.devise-links a:hover {
  color: var(--accent-color);
}

/* Override body styles for Devise pages */
body.devise-page {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--bg-primary);
}

/* Auth Pages Layout */
.auth-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.auth-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.auth-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--canyon-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-logo:hover {
  color: var(--sunrise-gold);
}

.auth-main {
  min-height: 100vh;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, 
    rgba(247, 243, 232, 0.3) 0%,
    rgba(232, 220, 198, 0.3) 50%,
    rgba(212, 196, 168, 0.3) 100%
  );
  padding: 2rem;
  padding-top: 5rem;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* Responsive Design for Auth Pages */
@media (min-width: 1400px) {
  .auth-container {
    max-width: 700px;
  }
  
  .devise-form {
    padding: 4rem;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .auth-container {
    max-width: 650px;
  }
  
  .devise-form {
    padding: 3.5rem;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .auth-container {
    max-width: 600px;
  }
  
  .devise-form {
    padding: 3rem;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .auth-container {
    max-width: 550px;
    padding: 0 2rem;
  }
  
  .devise-form {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .auth-main {
    padding: 1rem;
    min-height: 100vh;
  }
  
  .auth-container {
    max-width: none;
    min-width: auto;
    padding: 0 1rem;
  }
  
  .devise-form {
    margin: 0;
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }
  
  .auth-header .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .auth-main {
    padding: 0.5rem;
  }
  
  .auth-container {
    padding: 0 0.5rem;
  }
  
  .devise-form {
    padding: 1.5rem 1rem;
  }
  
  .devise-form h2 {
    font-size: 1.5rem;
  }
}

/* Footer */
.main {
  flex: 1;
}

.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Footer Social Links */
.footer-social {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.footer-social h4 {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.social-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-name {
  font-weight: 500;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-main p {
  color: var(--text-secondary);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Image upload and display */
.field-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.content-field-wrapper {
  position: relative;
}

.content-field-wrapper button {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.existing-images {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.existing-images h4 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.image-preview {
  display: inline-block;
  margin: 0.5rem;
  text-align: center;
  vertical-align: top;
}

.image-preview img {
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-preview p {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #666;
  word-break: break-all;
}

.post-images {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
}

.post-image {
  margin-bottom: 1.5rem;
  text-align: center;
}

.content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.content-image:hover {
  transform: scale(1.02);
}

.upload-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-dialog-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
}

.upload-dialog h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.upload-dialog .buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

.upload-dialog button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.upload-dialog .btn-primary {
  background-color: #3498db;
  color: white;
}

.upload-dialog .btn-secondary {
  background-color: #95a5a6;
  color: white;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .existing-images {
    padding: 0.75rem;
  }
  
  .image-preview {
    margin: 0.25rem;
  }
  
  .image-preview img {
    max-width: 150px !important;
  }
}

/* Settings Page - Minimalist Design */
.settings-section {
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Social Media Settings - Clean Sections */
.social-section {
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.social-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.social-section h4 {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}

.social-section .field {
  margin-bottom: 1.25rem;
}

.social-section .field:last-child {
  margin-bottom: 0;
}

.settings-preview {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.settings-preview h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.preview-content {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.preview-title {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.preview-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.preview-post {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.preview-post h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.preview-post p {
  color: var(--text-primary);
  line-height: 1.6;
}

/* Settings Tabs - Cleaner Design */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
  padding-bottom: 0;
}

.tab-button {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-button:hover {
  color: var(--text-primary);
}

.tab-button.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Settings Accordion - Minimal Style */
.accordion {
  border: none;
}

.accordion-section {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.accordion-section:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 0.75rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.accordion-header:hover {
  color: var(--accent-color);
}

.accordion-header.active {
  color: var(--accent-color);
}

.accordion-icon {
  transition: transform 0.2s ease;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  background-color: transparent;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 1rem 0;
}

.accordion-content .social-section {
  margin: 0;
  border: none;
  padding: 1rem 0;
  background: transparent;
}

/* Field Grid for Profile Links */
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.section-intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  border-left: 3px solid var(--accent-color);
}

.section-help {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-style: italic;
}

/* Posts Management */
.posts-management {
  max-width: 900px;
  margin: 0 auto;
}

.management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.management-header h1 {
  color: var(--text-primary);
  margin: 0;
}

.management-actions {
  display: flex;
  gap: 1rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.filter-tab.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  font-weight: 600;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.post-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px var(--shadow-color);
}

.post-info {
  flex: 1;
}

.post-title {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

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

.post-title a:hover {
  color: var(--accent-color);
}

.post-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9rem;
}

.post-status {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 500;
}

.post-status.published {
  background-color: #d4edda;
  color: #155724;
}

.post-status.draft {
  background-color: #fff3cd;
  color: #856404;
}

[data-theme="dark"] .post-status.published {
  background-color: #1e4620;
  color: #b7e4c7;
}

[data-theme="dark"] .post-status.draft {
  background-color: #3d3c1a;
  color: #ffd700;
}

.post-date {
  color: var(--text-secondary);
}

.post-images {
  color: var(--text-secondary);
}

.post-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.empty-state p {
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .management-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .filter-tabs {
    flex-wrap: wrap;
  }
  
  .post-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .post-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  /* Mobile Tab Styles */
  .tabs-nav {
    flex-direction: column;
  }
  
  .tab-button {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
  }
  
  .tab-button:last-child {
    border-bottom: none;
  }
  
  .field-grid {
    grid-template-columns: 1fr;
  }
  
  .accordion-header {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Settings Page Styles */
.settings-section {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.settings-section h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.field {
  margin-bottom: 1.5rem;
}

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

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(var(--accent-color), 0.2);
}

.settings-preview {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.settings-preview h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.preview-content {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem;
}

.preview-title {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.preview-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.preview-post {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.preview-post h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.preview-post p {
  color: var(--text-primary);
}

/* Font family CSS variables for dynamic font switching */
[data-font="Inter"] { --font-family: 'Inter', sans-serif; }
[data-font="Merriweather"] { --font-family: 'Merriweather', serif; }
[data-font="Roboto"] { --font-family: 'Roboto', sans-serif; }
[data-font="Georgia"] { --font-family: 'Georgia', serif; }
[data-font="Times"] { --font-family: 'Times New Roman', serif; }
[data-font="Fira"] { --font-family: 'Fira Sans', sans-serif; }
[data-font="Inconsolata"] { --font-family: 'Inconsolata', monospace; }
[data-font="Source"] { --font-family: 'Source Sans Pro', sans-serif; }

/* Page Management Buttons */
.btn-success {
  background-color: #28a745;
  color: white;
  border: 1px solid #28a745;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.btn-warning {
  background-color: #ffc107;
  color: #212529;
  border: 1px solid #ffc107;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  border: 1px solid #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

/* Page Management Layout */
.page-item {
  transition: box-shadow 0.2s ease;
}

.page-item:hover {
  box-shadow: 0 4px 8px var(--shadow-color);
}

/* Blog Layout Styles */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Full Posts Layout */
.full-posts-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 100%;
}

.post-full {
  padding: 2rem 0;
  border-bottom: 2px solid var(--border-color);
}

.post-full:last-child {
  border-bottom: none;
}

.post-full .post-header {
  margin-bottom: 1.5rem;
}

.post-full .post-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.post-full .post-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.post-full .post-title a:hover {
  color: var(--accent-color);
}

.post-full .post-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.post-full .post-content {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.post-full .post-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.permalink-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.permalink-link:hover {
  color: var(--accent-color);
}

/* Full Truncated Layout */
.full-truncated-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 100%;
}

.post-truncated {
  padding: 2rem 0;
  border-bottom: 2px solid var(--border-color);
}

.post-truncated:last-child {
  border-bottom: none;
}

.post-truncated .post-header {
  margin-bottom: 1.5rem;
}

.post-truncated .post-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.post-truncated .post-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.post-truncated .post-title a:hover {
  color: var(--accent-color);
}

.post-truncated .post-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.post-content-wrapper {
  position: relative;
}

.post-content.truncated {
  max-height: 300px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

.post-content.truncated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 60px;
  width: 100%;
  background: linear-gradient(transparent, var(--bg-primary));
  pointer-events: none;
}

.post-content.expanded {
  max-height: none;
}

.post-content.expanded::after {
  display: none;
}

.post-actions {
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.read-more-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.read-more-btn:hover {
  opacity: 0.9;
}

.full-post-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.full-post-link:hover {
  color: var(--accent-color);
}

.action-separator {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0 0.5rem;
}

.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.no-posts h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* ===== HAYDUKE LANDING PAGE ===== */

/* Landing Page Variables */
:root {
  --desert-sand: #d4a574;
  --desert-stone: #c19a6b;
  --desert-sage: #9caf88;
  --canyon-red: #b7472a;
  --night-sky: #1a1a2e;
  --sunrise-gold: #f4a261;
  --twilight-purple: #2a1a3d;
  --sage-green: #87a96b;
  --rock-gray: #6d6875;
  --sky-blue: #4a90e2;
}

/* Landing Page Specific Body - Only apply to landing page */
html.landing-page-html {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.landing-page-html body {
  font-family: 'Georgia', 'Times New Roman', serif !important;
  line-height: 1.7 !important;
  color: #333 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  height: 100vh !important;
  width: 100vw !important;
}

.desert-gradient {
  background: linear-gradient(180deg, 
    #f7f3e8 0%,     /* Light sand at top */
    #e8dcc6 30%,    /* Deeper sand */
    #d4c4a8 70%,    /* Stone color */
    #c19a6b 100%    /* Desert stone at bottom */
  );
  min-height: 100vh;
  height: 100%;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Landing Header */
.landing-header {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(196, 154, 107, 0.2);
}

.landing-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hayduke-logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--canyon-red);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  margin: 0;
}

.landing-nav .nav-link {
  color: var(--rock-gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.landing-nav .nav-link:hover {
  color: var(--canyon-red);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
  position: relative;
}

.hero .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--night-sky);
  line-height: 1.2;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-title .accent {
  color: var(--canyon-red);
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--rock-gray);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--canyon-red), var(--sunrise-gold));
  color: white;
  box-shadow: 0 4px 15px rgba(183, 71, 42, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 71, 42, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--rock-gray);
  border: 2px solid var(--rock-gray);
}

.btn-secondary:hover {
  background: var(--rock-gray);
  color: white;
  transform: translateY(-2px);
}

.hero-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--rock-gray);
  margin-top: 2rem;
}

.hero-quote small {
  color: var(--sage-green);
  font-weight: 500;
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  position: relative;
}

.features .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--night-sky);
  margin-bottom: 4rem;
  font-weight: 300;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(196, 154, 107, 0.3);
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--canyon-red);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  color: var(--night-sky);
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--rock-gray);
  line-height: 1.6;
  font-size: 1rem;
}

/* Free Speech Section */
.free-speech {
  padding: 6rem 0;
  background: linear-gradient(135deg, 
    rgba(135, 169, 107, 0.1) 0%,
    rgba(74, 144, 226, 0.1) 100%
  );
  position: relative;
}

.free-speech .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.free-speech-content h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--night-sky);
  margin-bottom: 3rem;
  font-weight: 300;
}

.principle-text {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(135, 169, 107, 0.3);
  border-radius: 15px;
  padding: 3rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.principle-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--rock-gray);
  margin-bottom: 1.5rem;
}

.principle-text p:last-child {
  margin-bottom: 0;
}

.freedom-motto {
  text-align: center;
  font-size: 1.25rem;
  color: var(--canyon-red);
  border-top: 2px solid var(--sage-green);
  padding-top: 2rem;
  margin-top: 2rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.principle-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(135, 169, 107, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.principle-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--sage-green);
}

.principle-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.principle-item h4 {
  color: var(--night-sky);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.principle-item p {
  color: var(--rock-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Call to Action */
.cta {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, 
    rgba(183, 71, 42, 0.1) 0%,
    rgba(244, 162, 97, 0.1) 100%
  );
}

.cta .container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta h2 {
  font-size: 2.5rem;
  color: var(--night-sky);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.cta p {
  font-size: 1.25rem;
  color: var(--rock-gray);
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* Public Footer (Landing and Auth Pages) */
.landing-footer,
.public-footer {
  padding: 3rem 0;
  background: rgba(26, 26, 46, 0.9);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.landing-footer .container,
.public-footer .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.landing-footer p,
.public-footer p {
  margin: 0;
  line-height: 1.6;
}

.landing-footer strong,
.public-footer strong {
  color: var(--sunrise-gold);
}

.landing-footer small,
.public-footer small {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .feature-card {
    padding: 2rem;
  }
  
  .landing-header .container {
    padding: 0 1rem;
  }
  
  .features .container,
  .free-speech .container,
  .cta .container,
  .landing-footer .container,
  .public-footer .container {
    padding: 0 1rem;
  }
  
  .free-speech {
    padding: 4rem 0;
  }
  
  .principle-text {
    padding: 2rem;
  }
  
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .principle-item {
    padding: 1.5rem;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Add some texture with subtle animations */
@keyframes desert-breeze {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(1px) translateY(-1px); }
  50% { transform: translateX(-1px) translateY(1px); }
  75% { transform: translateX(1px) translateY(1px); }
}

.feature-card:hover .feature-icon {
  animation: desert-breeze 4s ease-in-out infinite;
}

/* Why Hayduke Story Page */
.story-content {
  padding: 4rem 0;
  min-height: calc(100vh - 200px);
}

.story-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.story-article {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(196, 154, 107, 0.3);
  border-radius: 15px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.story-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--canyon-red);
  padding-bottom: 2rem;
}

.story-header h1 {
  font-size: 2.5rem;
  color: var(--night-sky);
  margin-bottom: 1rem;
  font-weight: 300;
}

.story-subtitle {
  font-size: 1.25rem;
  color: var(--rock-gray);
  font-style: italic;
  margin: 0;
}

.story-section {
  margin-bottom: 3rem;
}

.story-section h2 {
  color: var(--canyon-red);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.story-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--rock-gray);
  margin-bottom: 1.5rem;
}

.abbey-quote {
  background: linear-gradient(135deg, 
    rgba(135, 169, 107, 0.1) 0%,
    rgba(183, 71, 42, 0.1) 100%
  );
  border-left: 4px solid var(--canyon-red);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  font-style: italic;
}

.abbey-quote p {
  font-size: 1.25rem;
  color: var(--night-sky);
  margin-bottom: 1rem;
}

.abbey-quote cite {
  color: var(--sage-green);
  font-weight: 500;
  font-style: normal;
}

.closing-statement {
  background: rgba(183, 71, 42, 0.1);
  border: 2px solid var(--canyon-red);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  font-size: 1.15rem;
  color: var(--canyon-red);
  margin: 2rem 0;
}

.back-to-action {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .story-content {
    padding: 2rem 0;
  }
  
  .story-content .container {
    padding: 0 1rem;
  }
  
  .story-article {
    padding: 2rem;
  }
  
  .story-header h1 {
    font-size: 2rem;
  }
  
  .story-section h2 {
    font-size: 1.25rem;
  }
  
  .back-to-action {
    flex-direction: column;
    align-items: center;
  }
}

/* Landing Page Footer */
.landing-footer {
  background: linear-gradient(135deg, var(--desert-sand) 0%, var(--sage-green) 100%);
  padding: 2rem 0;
  text-align: center;
  border-top: 2px solid var(--canyon-red);
  margin-top: 4rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content p {
  margin: 0.5rem 0;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.footer-link {
  color: var(--canyon-red);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

.footer-tagline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Mobile styles for footer */
@media (max-width: 768px) {
  .landing-footer {
    padding: 1.5rem 0;
    margin-top: 3rem;
  }

  .footer-content {
    padding: 0 1rem;
  }

  .footer-content p {
    font-size: 1rem;
  }
}
