/* Mohyal.org Global Portal - Master Stylesheet */
:root {
  --primary: #8b1e22;       /* Royal Mohyal Crimson/Maroon */
  --primary-dark: #660e12;  /* Deep Burgundy */
  --primary-light: #ab2a30; /* Lighter Crimson */
  --gold: #d4af37;          /* Classic Gold */
  --gold-light: #f3e5ab;    /* Champagne Gold */
  --gold-dark: #997819;     /* Bronze Gold */
  --bg-main: #fdfbf7;       /* Warm Ivory */
  --bg-card: #ffffff;
  --text-main: #1f2937;     /* Slate 800 */
  --text-muted: #4b5563;    /* Slate 600 */
  --text-light: #9ca3af;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

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

a:hover {
  color: var(--primary-dark);
}

/* Header & Navigation */
.site-header {
  background: linear-gradient(135deg, #1a0507 0%, var(--primary-dark) 50%, var(--primary) 100%);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.top-bar {
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 0;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 0;
  color: #fff;
}

.brand-logo:hover {
  color: var(--gold-light);
}

.crest-icon {
  width: 46px;
  height: 46px;
  background: radial-gradient(circle, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a0507;
  font-weight: 900;
  font-size: 1.4rem;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.brand-text h1 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.5px;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  color: #f3f4f6;
  font-size: 0.925rem;
  font-weight: 500;
  padding: 0.5rem 0.6rem;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.08);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.5rem 0;
  display: none;
  z-index: 1010;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: #fdf5f5;
  color: var(--primary);
  padding-left: 1.4rem;
}

.btn-nav-register {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #1a0507 !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 24px !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.btn-nav-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.6);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(rgba(26, 5, 7, 0.82), rgba(102, 14, 18, 0.85)), url('../images/rohtas_fort.jpg') center/cover no-repeat;
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 50%, var(--primary) 100%);
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 0.35rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #e5e7eb;
  line-height: 1.6;
  margin-bottom: 2.25rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #3e0608 100%);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 30, 34, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #1a0507;
}

.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  color: #000;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* Stats Counter Ribbon */
.stats-ribbon {
  background: #ffffff;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  margin-top: -2rem;
  border-radius: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #f0e6d2;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Section Containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  width: 100%;
}

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

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

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--gold);
  margin: 0 auto 1.25rem auto;
  border-radius: 2px;
}

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

/* Clan Cards Grid */
.clans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.clan-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.clan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.clan-card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #2b0b0e 0%, var(--primary-dark) 100%);
  color: #fff;
  position: relative;
}

.clan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: #1a0507;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.clan-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.clan-gotra {
  font-size: 0.9rem;
  color: var(--gold-light);
  font-weight: 500;
}

.clan-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clan-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.clan-meta {
  background: #faf7f2;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.clan-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.clan-meta-row:last-child {
  margin-bottom: 0;
}

.clan-meta-label {
  font-weight: 600;
  color: var(--text-muted);
}

.clan-meta-val {
  font-weight: 700;
  color: var(--primary);
}

/* Directory & Cards */
.member-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.member-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.member-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.member-clan-tag {
  display: inline-block;
  background: #fdf2f2;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #fecaca;
  margin-bottom: 0.4rem;
}

.member-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.member-profession {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

/* Chat Room Styles */
.chat-wrapper {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  height: 650px;
}

.chat-sidebar {
  width: 280px;
  background: #faf7f2;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.chat-channel-list {
  list-style: none;
  overflow-y: auto;
  flex-grow: 1;
  padding: 0.5rem;
}

.chat-channel-btn {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
  transition: all 0.15s;
}

.chat-channel-btn:hover {
  background: #eee7dc;
}

.chat-channel-btn.active {
  background: var(--primary);
  color: #fff;
}

.chat-channel-btn.active .channel-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.chat-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fdfbf7;
}

.chat-msg {
  display: flex;
  gap: 12px;
  max-width: 80%;
}

.chat-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.chat-bubble {
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-sm);
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
}

.chat-author {
  font-weight: 700;
  color: var(--primary);
}

.chat-clan-badge {
  font-size: 0.7rem;
  background: #fef3c7;
  color: #92400e;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.chat-time {
  color: var(--text-light);
}

.chat-text {
  font-size: 0.925rem;
  color: var(--text-main);
  line-height: 1.45;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.chat-form {
  display: flex;
  gap: 10px;
}

.chat-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 30, 34, 0.15);
}

/* Forms & Registration */
.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #e5e7eb;
  max-width: 850px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 30, 34, 0.15);
}

/* Video Player Card */
.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-content {
  padding: 1.25rem;
}

/* Footer */
.site-footer {
  background: #150406;
  color: #d1d5db;
  padding: 4rem 1.5rem 1.5rem 1.5rem;
  margin-top: auto;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--gold);
}

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

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

.footer-links a {
  color: #9ca3af;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #9ca3af;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsiveness */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .chat-wrapper {
    flex-direction: column;
    height: 750px;
  }
  .chat-sidebar {
    width: 100%;
    height: 180px;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-ribbon {
    margin-top: 0;
  }
}
