/* ==========================================================================
   Horoduha Climbing Club - Theme Stylesheet
   ========================================================================== */

:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273549;
  --bg-surface: #141e30;
  --accent-orange: #ea580c;
  --accent-orange-hover: #f97316;
  --accent-orange-glow: rgba(234, 88, 12, 0.25);
  --accent-teal: #0d9488;
  --accent-green: #10b981;
  --accent-blue: #0284c7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(234, 88, 12, 0.35);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: normal;
}

h1, h2, h3, h4, h5, h6, p, a, li, blockquote {
  overflow-wrap: break-word;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-orange-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-orange);
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(234, 88, 12, 0.15);
  color: var(--accent-orange) !important;
  border: 1px solid var(--border-accent);
  padding: 0.4rem 0.85rem !important;
  border-radius: var(--radius-sm);
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.admin-badge:hover {
  background-color: var(--accent-orange) !important;
  color: #fff !important;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(20, 30, 48, 0.85) 50%, rgba(30, 41, 59, 0.75) 100%),
              radial-gradient(ellipse at 80% 20%, rgba(234, 88, 12, 0.15), transparent 50%),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.03"><path d="M0 0 L50 50 L100 0 Z" fill="white"/></svg>');
  background-size: cover, cover, auto;
  border-bottom: 1px solid var(--border-color);
  padding: 5rem 0;
  overflow: hidden;
}

.hero-content {
  max-width: 780px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.3);
  color: var(--accent-orange);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 100%;
  white-space: normal;
  text-wrap: balance;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow-wrap: break-word;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  max-width: 100%;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-orange-glow);
}

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-orange-glow);
}

.btn-reservation {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4);
}

.btn-reservation:hover {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.5);
}

/* Partner Logo Cards */
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.partner-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.35);
  border-color: var(--accent-orange);
}

.partner-img {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* NSA Grant Statement Box */
.nsa-grant-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 2px solid var(--accent-orange);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
  box-shadow: 0 8px 30px rgba(234, 88, 12, 0.15);
  text-align: left;
}

.nsa-grant-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.nsa-grant-date {
  display: inline-block;
  background: rgba(234, 88, 12, 0.2);
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.nsa-grant-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.nsa-grant-author {
  font-weight: 600;
  color: var(--accent-orange);
  font-size: 0.95rem;
}

/* Social Buttons */
.social-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.btn-facebook {
  background: #1877f2;
  color: #ffffff !important;
  font-weight: 600;
  border: none;
}

.btn-facebook:hover {
  background: #0d65d9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  font-weight: 600;
  border: none;
}

.btn-instagram:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

/* Warning Callout Box */
.warning-box {
  background: rgba(234, 88, 12, 0.12);
  border-left: 4px solid var(--accent-orange);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: #fed7aa;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Event Schedule List */
.event-list {
  list-style: none;
  margin-top: 1rem;
}

.event-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  gap: 1rem;
}

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

.event-date {
  color: var(--accent-orange);
  font-weight: 700;
  white-space: nowrap;
}

.event-name {
  color: var(--text-main);
  font-weight: 500;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Sections Common */
.section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section-alt {
  background-color: var(--bg-surface);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-block;
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
  align-items: stretch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(234, 88, 12, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  overflow-wrap: break-word;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* Feature Spec List */
.spec-list {
  list-style: none;
  margin-top: 1rem;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  overflow-wrap: break-word;
}

.spec-list li::before {
  content: "✔";
  color: var(--accent-green);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Difficulty Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-blue  { background: rgba(14, 165, 233, 0.15); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }
.badge-red   { background: rgba(239, 68, 68, 0.15);  color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-orange{ background: rgba(234, 88, 12, 0.15);  color: #fb923c; border: 1px solid rgba(234, 88, 12, 0.3); }

/* News / Articles Section */
.news-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.news-image-wrap {
  position: relative;
  height: 200px;
  background-color: #273549;
  background: linear-gradient(135deg, #1e293b, #334155);
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-image {
  transform: scale(1.05);
}

.news-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}

.news-snippet {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}

.news-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Pricing Grid */
.price-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.price-card.featured {
  border-color: var(--accent-orange);
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.08) 0%, var(--bg-card) 100%);
  box-shadow: 0 8px 30px var(--accent-orange-glow);
}

.featured-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price-figure {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 1rem 0 0.5rem 0;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.price-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.45rem 0;
}

.price-features li::before {
  content: "✔";
  color: var(--accent-orange);
  font-size: 0.85rem;
}

/* Schedule & Info Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
}

.info-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
}

.info-table th, .info-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  white-space: nowrap;
}

.info-table th:last-child,
.info-table td:last-child {
  white-space: normal;
}

.info-table th {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.info-table td {
  color: var(--text-main);
}

/* Contact Box */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background-color: rgba(234, 88, 12, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.contact-detail {
  min-width: 0;
  overflow-wrap: break-word;
}

.contact-detail h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-detail p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-detail a,
.footer-col a,
.card a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Single Article View */
.article-page {
  padding: 4rem 0 6rem 0;
}

.article-header {
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-orange);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.article-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cbd5e1;
  overflow-wrap: break-word;
}

.article-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  margin: 1.5rem 0;
}

.article-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-content h2 {
  font-size: 1.85rem;
  color: var(--text-main);
  margin: 2.5rem 0 1rem 0;
}

.article-content h3 {
  font-size: 1.45rem;
  color: var(--text-main);
  margin: 2rem 0 0.85rem 0;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  margin: 1.5rem 0 1.5rem 2rem;
}

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

.article-content blockquote {
  border-left: 4px solid var(--accent-orange);
  background-color: var(--bg-card);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-main);
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border: 1px solid var(--border-color);
}

/* Footer */
.site-footer {
  background-color: #090e17;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem 0;
}

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

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 290px;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero-actions .btn {
    width: 100%;
  }

  .card {
    padding: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .partner-item {
    width: 100%;
    justify-content: center;
  }
}
