/* Alfa2 Official Theme & Metin2 Medieval Dark Fantasy Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Marcellus+SC&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --alfa-gold: #d4af37;
  --alfa-gold-light: #fef08a;
  --alfa-gold-dark: #854d0e;
  --alfa-gold-border: rgba(212, 175, 55, 0.4);
  --alfa-gold-glow: 0 0 15px rgba(212, 175, 55, 0.35);
  
  --alfa-bg-dark: #0a0b0e;
  --alfa-card-bg: rgba(18, 20, 27, 0.88);
  --alfa-card-border: rgba(212, 175, 55, 0.25);
  --alfa-input-bg: rgba(10, 11, 15, 0.85);

  --shinsoo-red: #ef4444;
  --chunjo-yellow: #eab308;
  --jinno-blue: #3b82f6;

  --alfa-font-title: 'Marcellus SC', 'Cinzel', serif;
  --alfa-font-sans: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--alfa-bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(10, 11, 14, 0.85), rgba(10, 11, 14, 0.96)),
    url('/static/assets/bg.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
  color: #e2e8f0;
  font-family: var(--alfa-font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0e12;
}
::-webkit-scrollbar-thumb {
  background: #3e3215;
  border: 1px solid var(--alfa-gold-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--alfa-gold);
}

/* Typography */
.font-alfa {
  font-family: var(--alfa-font-title);
  letter-spacing: 0.05em;
}

.text-gold {
  color: var(--alfa-gold);
}
.text-gold-light {
  color: var(--alfa-gold-light);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fff2a8 0%, #d4af37 50%, #aa771c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Metin2 Box / Panels */
.alfa-box {
  background: var(--alfa-card-bg);
  border: 1px solid var(--alfa-card-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  position: relative;
}

.alfa-box::before {
  content: '';
  position: absolute;
  top: -1px; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--alfa-gold), transparent);
}

.alfa-box-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, transparent 100%);
}

.alfa-box-body {
  padding: 1.5rem;
}

/* Buttons */
.alfa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--alfa-font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.alfa-btn-gold {
  background: linear-gradient(180deg, #e4c158 0%, #b38b22 50%, #805c10 100%);
  color: #1a1202;
  border: 1px solid #ffe285;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.alfa-btn-gold:hover {
  background: linear-gradient(180deg, #fce07e 0%, #caa12c 50%, #996e13 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
  color: #0d0901;
}

.alfa-btn-dark {
  background: rgba(25, 28, 38, 0.9);
  color: #cbd5e1;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.alfa-btn-dark:hover {
  background: rgba(35, 40, 55, 1);
  color: var(--alfa-gold-light);
  border-color: var(--alfa-gold);
}

.alfa-btn-danger {
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  color: white;
  border: 1px solid #ef4444;
}

.alfa-btn-danger:hover {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Inputs & Form Elements */
.alfa-input, .alfa-select, .alfa-textarea {
  width: 100%;
  background: var(--alfa-input-bg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #f1f5f9;
  font-family: var(--alfa-font-sans);
  transition: all 0.2s ease;
  outline: none;
}

.alfa-input:focus, .alfa-select:focus, .alfa-textarea:focus {
  border-color: var(--alfa-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.alfa-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
  font-family: var(--alfa-font-title);
  letter-spacing: 0.03em;
}

/* Kingdom Selector Cards */
.kingdom-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(15, 17, 24, 0.6);
}

.kingdom-card.selected-shinsoo {
  border-color: var(--shinsoo-red);
  background: rgba(239, 68, 68, 0.15);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.kingdom-card.selected-chunjo {
  border-color: var(--chunjo-yellow);
  background: rgba(234, 179, 8, 0.15);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.3);
}

.kingdom-card.selected-jinno {
  border-color: var(--jinno-blue);
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--alfa-font-title);
}

.badge-pending {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.badge-reviewing {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-action {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-info {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

/* Drag and Drop Zone */
.dropzone {
  border: 2px dashed rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(12, 14, 20, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--alfa-gold);
  background: rgba(212, 175, 55, 0.06);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Chat Message Bubbles */
.chat-msg {
  padding: 0.85rem 1.15rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  max-width: 85%;
  font-size: 0.925rem;
  line-height: 1.5;
}

.chat-msg-gm {
  background: linear-gradient(135deg, rgba(30, 25, 15, 0.95), rgba(45, 36, 18, 0.95));
  border: 1px solid var(--alfa-gold-border);
  margin-right: auto;
  border-left: 4px solid var(--alfa-gold);
}

.chat-msg-reporter {
  background: rgba(20, 26, 38, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.3);
  margin-left: auto;
  border-right: 4px solid var(--jinno-blue);
}

.chat-msg-system {
  background: rgba(15, 17, 23, 0.8);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  margin: 0.75rem auto;
  text-align: center;
  font-size: 0.825rem;
  color: #94a3b8;
}

/* Metin2 Seal / Stamp */
.gm-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--alfa-font-title);
  color: var(--alfa-gold-light);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Metin2 Play Header Banner */
.play-banner-btn {
  background: linear-gradient(180deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  border: 1px solid #34d399;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  font-weight: bold;
}
.play-banner-btn:hover {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.6);
  transform: scale(1.03);
}
