/*
 * 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);
  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;
  display: flex;
  justify-content: flex-end;
  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;
  font-style: italic;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.5;
  text-align: left;
}

/* 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 - Clean minimal style like pika.page */
.site-nav {
  background: transparent;
  border-bottom: none;
  margin-bottom: 2rem;
  padding: 0.5rem 0;
  text-align: center;
}

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

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

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

.nav-item:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.nav-item.active {
  color: var(--text-primary);
  font-weight: 500;
}

.nav-item.rss-link {
  color: var(--text-secondary, #6c757d);
}

.nav-item.rss-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.nav-separator {
  color: var(--text-muted, #999);
  margin: 0 0.25rem;
  font-weight: 300;
  font-size: 0.9rem;
}

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

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

.social-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* 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;
}

/* Pika.page style summary list */
.year-group {
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: 10%;
  padding: 0 2rem;
}

.year-header {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.post-summary-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  gap: 0.5rem;
}

.post-summary-left {
  display: flex;
  align-items: baseline;
  flex: 1;
  min-width: 0;
}

.post-summary-tags {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: baseline;
}

.post-date-inline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  min-width: 60px;
  flex-shrink: 0;
  margin-right: 1rem;
}

.post-link-inline {
  color: var(--text-primary);
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.post-link-inline:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.tag-link-inline {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

/* Responsive: Stack tags below on mobile */
@media (max-width: 768px) {
  .post-summary-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .post-summary-left {
    width: 100%;
  }
  
  .post-link-inline {
    white-space: normal;
  }
  
  .post-summary-tags {
    margin-left: 71px; /* Align with post title */
  }
}

.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: 800px;
  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 - Clean minimal style like pika.page */
.site-footer {
  background: transparent;
  border-top: 1px solid var(--border-color, #e0e0e0);
  margin-top: 4rem;
  padding: 2rem 0 3rem 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-muted, #999);
  font-size: 0.85rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--text-secondary, #666);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* Single post page - centered title and date */
.post-header-single {
  text-align: center;
  margin-bottom: 3rem;
}

.post-header-single .post-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.post-header-single .post-meta {
  margin-top: 0.5rem;
  display: block;
  text-align: center;
}

.post-header-single .post-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Full posts layout - add spacing between header and content */
.post-full .post-header {
  margin-bottom: 2rem;
}

.post-full .post-meta {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
  display: block;
  width: 100%;
}

.post-full .post-date {
  white-space: nowrap;
  display: inline-block;
}

.post-full .post-content {
  margin-top: 1.5rem;
}

.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;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  padding: 0.5rem;
  border-radius: 4px;
}

/* Reply by Email Section */
.post-reply-section {
  margin-top: 3rem;
}

.reply-separator {
  border: none;
  border-top: 1px solid var(--border-color, #dee2e6);
  margin: 2rem 0 1.5rem 0;
}

.reply-by-email {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--bg-secondary, #f8f9fa);
  border-radius: 8px;
  border: 1px solid var(--border-color, #dee2e6);
}

.reply-prompt {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--text-primary, #333);
  font-weight: 500;
}

.reply-by-email-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color, #007bff);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reply-by-email-link:hover {
  background-color: var(--primary-color, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: white;
}

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

.list-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 2rem;
}

@media (max-width: 768px) {
  .list-container {
    padding: 1rem;
  }
}

.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;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* 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: transparent;
  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;
  justify-content: center;
}

.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;
}

/* Custom Domain DNS Instructions */
.domain-info {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent-color);
}

.domain-info code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

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

.dns-instructions h4 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.dns-instructions > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.dns-option {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--bg-primary);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.dns-option h5 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.dns-option > p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.dns-option code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: 'Monaco', 'Menlo', monospace;
}

.dns-record table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.dns-record th {
  background-color: var(--bg-secondary);
  padding: 0.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.dns-record td {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.dns-record td code {
  background-color: transparent;
  padding: 0;
}

.dns-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.dns-steps {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: var(--bg-primary);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.dns-steps h5 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.dns-steps ol {
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

.dns-steps li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.dns-warning {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(255, 193, 7, 0.1);
  border-left: 3px solid #ffc107;
  border-radius: 4px;
}

.dns-warning p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Posts Management */
.posts-management {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 2rem;
}

@media (max-width: 768px) {
  .posts-management {
    padding: 1rem;
  }
}

.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: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

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

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

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

.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-meta {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

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

.post-truncated .post-excerpt {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.post-truncated .post-footer {
  margin-top: 1rem;
}

.read-more-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.read-more-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.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;
}

/* Media Library Styles */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.media-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-primary);
}

.media-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-file-icon {
  font-size: 2rem;
  color: var(--text-muted);
  text-align: center;
}

.media-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.btn-icon {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.btn-icon:hover {
  background: var(--bg-hover);
  transform: scale(1.05);
}

.btn-copy.copied {
  background: var(--success-bg, #d4edda);
  color: var(--success-text, #155724);
  border-color: var(--success-border, #c3e6cb);
}

.btn-delete:hover {
  background: var(--danger-bg, #f8d7da);
  color: var(--danger-text, #721c24);
  border-color: var(--danger-border, #f5c6cb);
}

.media-info-text {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.media-filename {
  font-size: 0.85rem;
  color: var(--text-primary);
  word-break: break-word;
}

.media-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state p {
  margin: 0.5rem 0;
}

.media-info {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 4px;
  border-left: 4px solid var(--accent-color);
}

/* Unused media indicator */
.media-unused {
  opacity: 0.6;
}

.media-unused:hover {
  opacity: 1;
}

.media-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.media-thumbnail {
  position: relative;
}

.media-status {
  display: block;
  font-size: 0.7rem;
  margin-top: 0.25rem;
}

/* Mobile styles for media grid */
@media (max-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .media-actions {
    padding: 0.5rem;
  }
  
  .btn-icon {
    font-size: 1rem;
    padding: 0.4rem;
  }
}

/* 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;
  }
}

/* ===================================
   Post Editor Styles
   =================================== */

/* Editor Container - Full viewport experience */
.editor-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--bg-primary);
  overflow: hidden;
}

.editor-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Editor Header - Minimal chrome */
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
  flex-shrink: 0;
}

.editor-title-section {
  flex: 1;
  max-width: 800px;
}

.editor-title-input {
  width: 100%;
  font-size: 2rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-primary);
  padding: 0.5rem;
  outline: none;
  font-family: inherit;
}

.editor-title-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.editor-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.btn-icon-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-icon-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Editor Tabs */
.editor-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.editor-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.editor-tab.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  background: var(--bg-primary);
}

/* Editor Toolbar */
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 2.5rem;
  white-space: nowrap;
}

.toolbar-btn:hover {
  background: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.toolbar-btn strong,
.toolbar-btn em {
  font-size: 1rem;
}

.toolbar-divider {
  width: 1px;
  height: 1.5rem;
  background: var(--border-color);
  margin: 0 0.25rem;
}

/* Editor Content Area - Tabs */
.editor-content-tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.editor-tab-panel {
  display: none;
  flex: 1;
  overflow: hidden;
}

.editor-tab-panel.active {
  display: flex;
  flex-direction: column;
}

/* Editor Textarea */
.editor-textarea {
  flex: 1;
  width: 100%;
  padding: 2rem;
  border: none;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.8;
  font-family: 'Courier New', Courier, monospace;
  resize: none;
  outline: none;
  overflow-y: auto;
}

.editor-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.4;
}

/* Preview Content */
.preview-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.preview-content h1,
.preview-content h2,
.preview-content h3,
.preview-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
}

.preview-content h1 {
  font-size: 2rem;
}

.preview-content h2 {
  font-size: 1.75rem;
}

.preview-content h3 {
  font-size: 1.5rem;
}

.preview-content p {
  margin-bottom: 1rem;
}

.preview-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
}

.preview-content code {
  background: var(--bg-secondary);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.preview-content pre {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
}

.preview-content pre code {
  background: none;
  padding: 0;
}

.preview-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.preview-content ul,
.preview-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.preview-content li {
  margin-bottom: 0.5rem;
}

.preview-content a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Editor Footer */
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  max-width: 400px;
}

.slug-input {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Courier New', Courier, monospace;
}

.tags-input {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  flex: 1;
  margin-top: 0.5rem;
}

.tags-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.slug-help {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.error-indicator {
  color: #e74c3c;
  font-size: 0.9rem;
}

/* Fullscreen mode */
.editor-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
}

.editor-container.fullscreen .editor-header,
.editor-container.fullscreen .editor-toolbar,
.editor-container.fullscreen .editor-footer {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.editor-container.fullscreen:hover .editor-header,
.editor-container.fullscreen:hover .editor-toolbar,
.editor-container.fullscreen:hover .editor-footer {
  opacity: 1;
  pointer-events: auto;
}

.editor-container.fullscreen .editor-textarea {
  padding: 4rem 20%;
  font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .toolbar-group {
    gap: 0.15rem;
  }
  
  .toolbar-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    min-width: 2rem;
  }
  
  .editor-container.fullscreen .editor-textarea {
    padding: 4rem 10%;
  }
}

@media (max-width: 768px) {
  .editor-title-input {
    font-size: 1.5rem;
  }
  
  .editor-toolbar {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
  
  .toolbar-divider {
    display: none;
  }
  
  .toolbar-btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .editor-textarea,
  .preview-content {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .editor-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .footer-left {
    max-width: 100%;
  }
  
  .footer-right {
    justify-content: flex-end;
  }
  
  .editor-container.fullscreen .editor-textarea {
    padding: 2rem 5%;
    font-size: 1.1rem;
  }
}

/* Hide upload dialog */
.upload-dialog {
  display: none !important;
}

/* ===================================
   Content Table - Clean List Style
   =================================== */

.content-table {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: visible;
}

.content-table table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}

.content-table thead {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
}

.content-table thead tr {
  background: var(--bg-secondary) !important;
}

.content-table tbody {
  overflow: visible;
}

.content-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.content-table tbody tr {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
  position: relative;
}

.content-table tbody tr:last-child {
  border-bottom: none;
}

.content-table tbody tr:hover {
  background: var(--bg-secondary);
}

.content-table td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  font-size: 0.95rem;
  overflow: visible;
}

/* Title column */
.title-col {
  font-weight: 500;
  max-width: 400px;
}

.item-title-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.item-title {
  color: var(--text-secondary);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

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

/* Date column */
.date-col {
  color: var(--text-secondary);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Media column */
.media-col {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  width: 80px;
}

/* Menu column */
.menu-col {
  font-size: 0.9rem;
}

.menu-visible {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.menu-arrows {
  display: inline-flex;
  gap: 0.15rem;
}

.arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.arrow-btn:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.menu-hidden {
  color: var(--text-muted);
  font-style: italic;
}

/* Slug column */
.slug-col code {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

/* Actions column */
.actions-col {
  width: 60px;
  text-align: center;
  overflow: visible;
  position: relative;
}

.row-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}

.action-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.action-link:hover {
  color: var(--accent-color);
  background: var(--bg-secondary);
}

.action-link.action-primary:hover {
  color: #007bff;
}

.action-link.action-success:hover {
  color: #28a745;
}

.action-link.action-warning:hover {
  color: #ffc107;
}

.action-link.action-danger:hover {
  color: #dc3545;
}

/* ===================================
   Dropdown Menu
   =================================== */

.dropdown {
  position: relative;
  display: inline-block;
  z-index: 10;
}

.dropdown-trigger {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 4px;
  transition: all 0.15s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu.dropdown-above {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 0.25rem;
  transform: translateY(10px);
}

.dropdown-menu.dropdown-above.show {
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--accent-color);
}

.dropdown-item-danger {
  color: #dc3545;
}

.dropdown-item-danger:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.dropdown-icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.25rem 0;
}

/* ===================================
   Sortable Table Rows - Drag & Drop
   =================================== */

.table-header-info {
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.table-header-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.sortable-row {
  cursor: move;
  transition: background-color 0.15s ease, opacity 0.2s ease;
}

.sortable-row.dragging {
  opacity: 0.4;
  background: var(--accent-color) !important;
  color: white;
}

.sortable-row.dragging * {
  color: white !important;
}

.drag-handle-cell {
  text-align: center;
  padding: 0.875rem 0.25rem !important;
}

.drag-handle-icon {
  font-size: 1rem;
  color: var(--text-muted);
  cursor: grab;
  user-select: none;
  margin-right: 0.25rem;
}

.sortable-row.dragging .drag-handle-icon {
  cursor: grabbing;
  color: white;
}

.order-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.sortable-row.dragging .order-number {
  color: white;
}

/* Responsive table */
@media (max-width: 1024px) {
  .content-table {
    overflow-x: auto;
  }
  
  .content-table table {
    min-width: 700px;
  }
}

@media (max-width: 768px) {
  .content-table th,
  .content-table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .actions-col {
    width: 180px;
  }
  
  .row-actions {
    gap: 0.5rem;
  }
  
  .action-link {
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
  }
}

/* ===================================
   Clean Settings Layout
   =================================== */

.settings-form {
  max-width: 800px;
  margin: 0 auto;
}

.settings-form .section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.settings-form .subsection-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
}

.settings-form .service-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 1.5rem 0 0.75rem 0;
}

.settings-form .section-intro {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.settings-form .section-help {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.settings-form .section-info {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.dns-option {
  margin: 1.5rem 0;
}

.dns-option h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dns-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--bg-secondary);
  border-radius: 6px;
  overflow: hidden;
}

.dns-table thead {
  background: var(--bg-primary);
}

.dns-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}

.dns-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.dns-table tbody tr:last-child td {
  border-bottom: none;
}

.dns-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.dns-steps {
  margin: 1.5rem 0;
}

.dns-steps h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.dns-steps ol {
  padding-left: 1.5rem;
  line-height: 1.8;
}

.dns-steps li {
  margin-bottom: 0.5rem;
}

/* ===================================
   Custom Theme Color Pickers
   =================================== */

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

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.color-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.color-field label {
  font-weight: 600;
  color: var(--text-primary);
}

.color-input-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.color-picker {
  width: 60px;
  height: 40px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-picker:hover {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.color-hex-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.color-hex-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.color-actions {
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Custom Theme Preview */
.custom-theme-preview {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
}

.custom-theme-preview h5 {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.custom-theme-preview .preview-content {
  padding: 1.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.custom-theme-preview h2 {
  margin: 0 0 1rem 0;
}

.custom-theme-preview p {
  margin: 1rem 0;
  line-height: 1.6;
}

.custom-theme-preview a {
  text-decoration: underline;
}

.custom-theme-preview button {
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.custom-theme-preview button:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .color-grid {
    grid-template-columns: 1fr;
  }
  
  .color-input-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .color-picker {
    width: 100%;
  }
}

.dns-warning {
  background: #fff3cd;
  color: #856404;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  border: 1px solid #ffeaa7;
}

.dns-warning p {
  margin: 0;
}

/* ================================
   Tags & Search Styles
   ================================ */

/* Tags Page */
.tags-page,
.tag-show-page,
.search-results-page {
  padding: 2rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* Search Container */
.search-container {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.search-form {
  width: 100%;
}

.search-input-group {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.search-btn {
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}

/* Popular Tags - Clean Text Based */
.popular-tags-section {
  margin-bottom: 3rem;
}

.popular-tags-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.popular-tags-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.popular-tag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.popular-tag-item:hover {
  padding-left: 1rem;
}

.popular-tag-item:hover .tag-name {
  color: var(--accent-color);
}

.popular-tag-item .tag-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.popular-tag-item .tag-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Tag Cloud - Clean Text Based */
.tag-cloud-section {
  margin-bottom: 3rem;
}

.tag-cloud-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.tag-cloud-item {
  display: inline-block;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.tag-cloud-item:hover {
  background: transparent;
  color: var(--accent-color);
  border: none;
  transform: none;
}

/* Tag sizes based on usage - subtle text variations */
.tag-size-1 {
  font-size: 0.9rem;
  opacity: 0.7;
}

.tag-size-2 {
  font-size: 1rem;
  opacity: 0.8;
}

.tag-size-3 {
  font-size: 1.1rem;
  opacity: 0.9;
}

.tag-size-4 {
  font-size: 1.2rem;
  font-weight: 500;
}

.tag-size-5 {
  font-size: 1.3rem;
  font-weight: 600;
}

/* Tag Badge (for inline tags) */
.tag-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--accent-color);
  text-decoration: none;
  margin-right: 0.5rem;
  transition: all 0.2s ease;
}

.tag-badge:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Search Results - Clean Text Based */
.search-results {
  max-width: 800px;
  margin: 0 auto;
}

.search-result-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  border-radius: 0;
  transition: none;
}

.search-result-item:hover {
  border-color: var(--border-color);
}

.result-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

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

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

.result-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.result-tags {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.result-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .popular-tags-list {
    gap: 0.25rem;
  }
  
  .tag-cloud {
    justify-content: flex-start;
    gap: 0.75rem 1.5rem;
  }
  
  .search-input-group {
    flex-direction: column;
  }
  
  .search-btn {
    width: 100%;
  }
}

/* Subscription Page Styles */
.subscription-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.subscription-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow-color);
  max-width: 500px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
}

.subscription-header {
  margin-bottom: 2rem;
}

.subscription-header h1 {
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.subscription-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.subscription-features {
  text-align: left;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.subscription-features h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.subscription-features ul {
  list-style: none;
  padding: 0;
}

.subscription-features li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  font-size: 1rem;
}

.subscription-pricing {
  margin: 2rem 0;
}

.subscription-pricing .price {
  font-size: 3rem;
  color: var(--accent-color);
  font-weight: bold;
}

.subscription-pricing .currency {
  font-size: 2rem;
  vertical-align: top;
}

.subscription-pricing .amount {
  font-size: 4rem;
}

.subscription-pricing .period {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

#payment-form {
  margin: 2rem 0;
}

#card-element {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

#card-errors {
  color: #fa755a;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.btn-large {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
}

.btn-success {
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

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

.btn-success:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.subscription-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* Trial Status Banner */
.trial-banner {
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
  border-left: 4px solid;
}

.trial-active {
  background-color: #e3f2fd;
  border-color: #2196f3;
}

[data-theme="dark"] .trial-active {
  background-color: #0d47a1;
  border-color: #42a5f5;
}

.trial-expired {
  background-color: #fff3e0;
  border-color: #ff9800;
}

[data-theme="dark"] .trial-expired {
  background-color: #e65100;
  border-color: #ffb74d;
}

.trial-subscribed {
  background-color: #e8f5e9;
  border-color: #4caf50;
}

[data-theme="dark"] .trial-subscribed {
  background-color: #1b5e20;
  border-color: #66bb6a;
}

.trial-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trial-icon {
  font-size: 1.5rem;
}

.trial-text {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.trial-btn {
  padding: 0.5rem 1rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.trial-btn:hover {
  opacity: 0.9;
}

.trial-btn-urgent {
  background-color: #ff6b35;
  animation: pulse 2s infinite;
}

.trial-btn-manage {
  background-color: #6c757d;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Subscription Details */
.subscription-details {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.detail-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-value {
  color: var(--text-primary);
  font-weight: 600;
}

.status-active {
  color: #28a745;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  transition: background-color 0.2s;
}

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

.btn-danger {
  background-color: #dc3545;
  color: white;
  border: none;
  cursor: pointer;
}

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

/* Admin Dashboard Styles */
.admin-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

.admin-header h1 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.admin-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.metric-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.metric-highlight {
  border-color: var(--accent-color);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.metric-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.metric-content {
  flex: 1;
}

.metric-content h3 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-value-small {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.metric-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-item {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-section {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.admin-section h2 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.search-box {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.search-results {
  margin-top: 1rem;
}

.users-table {
  overflow-x: auto;
}

.users-table table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}

.users-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-admin {
  background: #dc3545;
  color: white;
}

.badge-lifetime {
  background: #ffc107;
  color: #000;
}

.badge-subscribed {
  background: #28a745;
  color: white;
}

.badge-trial {
  background: #17a2b8;
  color: white;
}

.badge-expired {
  background: #6c757d;
  color: white;
}

.user-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-mini {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-mini:hover {
  opacity: 0.8;
}

.btn-admin {
  background: #007bff;
  color: white;
}

.btn-lifetime {
  background: #ffc107;
  color: #000;
}

.btn-delete {
  background: #dc3545;
  color: white;
}

.btn-delete:hover {
  background: #c82333;
  opacity: 1;
}

.btn-info {
  background: #17a2b8;
  color: white;
}

.btn-info:hover {
  background: #138496;
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: var(--bg-primary);
  margin: 5% auto;
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.close {
  color: var(--text-secondary);
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover,
.close:focus {
  color: var(--text-primary);
  text-decoration: none;
}

.error-log {
  background: #1a1a1a;
  border-radius: 6px;
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

.error-line {
  color: #ff6b6b;
  padding: 0.25rem 0;
  border-bottom: 1px solid #333;
}

.error-line:last-child {
  border-bottom: none;
}

.no-results {
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem;
  font-style: italic;
}

.admin-link {
  color: #ffc107;
  font-weight: 600;
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .user-actions {
    flex-direction: column;
  }
  
  .search-box {
    flex-direction: column;
  }
}

/* Landing Page Pricing Styles */
.pricing-banner {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pricing-highlight {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2ecc71;
  padding: 0.5rem 1rem;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 8px;
}

.pricing-separator {
  font-size: 1.2rem;
  color: #666;
  font-style: italic;
}

.pricing-amount {
  font-size: 1.5rem;
  font-weight: bold;
  color: #c19a6b;
  padding: 0.5rem 1rem;
  background: rgba(193, 154, 107, 0.1);
  border-radius: 8px;
}

.cta-pricing {
  margin: 1.5rem 0;
}

.pricing-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #f7f3e8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.pricing-text strong {
  color: #fff;
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  .pricing-banner {
    flex-direction: column;
    padding: 1rem;
  }
  
  .pricing-highlight,
  .pricing-amount {
    font-size: 1.3rem;
  }
}

/* Signup Page Pricing Notice */
.signup-pricing-notice {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 4px solid #4caf50;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  text-align: center;
}

.signup-pricing-notice p {
  margin: 0.5rem 0;
  color: #2e7d32;
}

.signup-pricing-notice p:first-child {
  font-size: 1.1rem;
}

.signup-pricing-notice strong {
  font-size: 1.2rem;
  color: #1b5e20;
}

/* Support Links (Discord & Matrix) */
.discord-link {
  color: #5865F2 !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.discord-link:hover {
  color: #4752C4 !important;
  text-decoration: underline;
}

.footer-links,
.footer-support {
  margin: 0.75rem 0;
}

.admin-footer {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 8px;
}

.admin-footer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.settings-footer {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 8px;
}

.settings-footer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.pin-display {
  margin: 2rem 0;
}

.pin-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.pin-card h4 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.pin-number {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.5rem;
  margin: 1rem 0;
  font-family: "Courier New", monospace;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.pin-help {
  margin: 1rem 0 0 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Subscription Status Cards in Settings */
.subscription-status .subscription-card {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.subscription-status .subscription-card.active {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
  border: none;
}

.subscription-status .subscription-card.trial {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
}

.subscription-status .subscription-card.exempt {
  background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  color: white;
  border: none;
}

.subscription-status .subscription-card h4 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.subscription-status .subscription-card .subscription-text {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  opacity: 0.95;
  color: white;
}

.subscription-status .subscription-card .btn {
  margin-top: 1rem;
  background: white;
  color: #333;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.subscription-status .subscription-card .btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.subscription-status .subscription-card .field-help {
  color: white;
  opacity: 0.9;
}

.section-divider {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 2rem 0;
}

.field-group {
  margin-bottom: 2rem;
}

.field-group h4 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.1rem;
}

.field-actions {
  margin-top: 1rem;
}

.support-pin {
  background-color: #f0f0f0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-weight: bold;
  color: #333;
  font-size: 0.9rem;
}

