/* =========================================
   TURKISH COFFEE HOUSE BRAND THEME - DARK MODE
   ========================================= */

/* Import New Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Cormorant+Garamond:wght@600&family=Montserrat:wght@400;500;600;700&display=swap');

/* =========================================
   BRAND COLOR VARIABLES (Dark Theme)
   ========================================= */

:root {
  /* Brand Colors */
  --brand-forest-green: #0F3D3E;
  --brand-gold: #C7A25B;
  --brand-ivory: #F7F4EC;
  --brand-charcoal: #1C1C1C;
  
  /* Dark Theme - Background & Text */
  --bg-dark: #0F3D3E;
  --bg-darker: #0a2829;
  --bg-darkest: #051415;
  --text-light: #F7F4EC;
  --text-muted: #B8B8B8;
  
  /* Semantic Aliases */
  --primary: #0F3D3E;
  --secondary: #C7A25B;
  --light: #F7F4EC;
  --dark: #1C1C1C;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --gray: #8B8B8B;
  --gray-light: #D3D3D3;
  --gray-lighter: #E8E8E8;
  
  /* Typography */
  --font-logo: 'Cinzel', serif;
  --font-secondary: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Derived Colors */
  --success: #27AE60;
  --warning: #E67E22;
  --danger: #E74C3C;
  --info: #3498DB;
}

/* =========================================
   GLOBAL DARK THEME
   ========================================= */

html, body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  background-image: linear-gradient(135deg, #0F3D3E 0%, #051415 100%);
  color: var(--text-light);
}

* {
  box-sizing: border-box;
}

/* =========================================
   TYPOGRAPHY - DARK THEME
   ========================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--brand-gold);
  font-weight: 600;
  letter-spacing: 0.5px;
}

h1 {
  font-family: var(--font-logo);
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: var(--brand-ivory);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: 1.8rem;
  color: var(--brand-gold);
  border-bottom: 2px solid var(--brand-gold);
  padding-bottom: 10px;
}

h3 {
  font-size: 1.4rem;
  color: var(--brand-gold);
}

p, a, span {
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: var(--brand-gold);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--brand-ivory);
  text-shadow: 0 0 10px rgba(199, 162, 91, 0.3);
}

.logo, .navbar-brand {
  font-family: var(--font-logo);
  color: var(--brand-charcoal) !important;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.8rem;
}

/* =========================================
   NAVIGATION & NAVBAR
   ========================================= */

.navbar {
  background: linear-gradient(90deg, #C7A25B 0%, #a0822a 100%);
  border-bottom: 3px solid var(--brand-charcoal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-link {
  color: var(--brand-charcoal) !important;
  font-family: var(--font-body);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-forest-green) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.bg-primary {
  background-color: var(--brand-forest-green) !important;
}

/* =========================================
   BUTTONS & LINKS
   ========================================= */

.btn,
button,
input[type="button"],
input[type="submit"] {
  font-family: var(--font-body);
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 6px;
  cursor: pointer;
}

.btn-primary,
button[type="submit"] {
  background: linear-gradient(180deg, #F0E0B8 0%, #C7A25B 24%, #AD8A45 52%, #C7A25B 76%, #8F6F28 100%);
  border: none;
  color: var(--bg-dark) !important;
  text-shadow: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(199, 162, 91, 0.35);
}

.btn-primary:hover,
button[type="submit"]:hover {
  background: linear-gradient(180deg, #F7ECCB 0%, #D4B575 24%, #B89C3C 52%, #D4B575 76%, #9C7A2E 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2),
    0 6px 16px rgba(199, 162, 91, 0.5);
  transform: translateY(-2px);
}

.btn-primary:active,
button[type="submit"]:active {
  background: linear-gradient(180deg, #AD8A45 0%, #C7A25B 50%, #8F6F28 100%);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(199, 162, 91, 0.3);
  transform: translateY(0);
}

.btn-outline-primary {
  color: var(--brand-gold) !important;
  border: 2px solid var(--brand-gold) !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover {
  background-color: rgba(199, 162, 91, 0.1) !important;
  box-shadow: 0 4px 12px rgba(199, 162, 91, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #0F3D3E 0%, #051415 100%);
  border: 2px solid var(--brand-gold);
  color: var(--brand-gold) !important;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #1a5556 0%, #0a2829 100%);
  box-shadow: 0 4px 12px rgba(199, 162, 91, 0.3);
}

.btn-danger {
  background-color: #E74C3C !important;
  border-color: #E74C3C !important;
  color: #fff !important;
}

.btn-danger:hover {
  background-color: #C0392B !important;
  border-color: #C0392B !important;
}

.btn-success {
  background-color: #27AE60 !important;
  border-color: #27AE60 !important;
  color: #fff !important;
}

.btn-success:hover {
  background-color: #229954 !important;
  border-color: #229954 !important;
}

/* =========================================
   FORMS & INPUTS
   ========================================= */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
  background-color: rgba(247, 244, 236, 0.08);
  border: 2px solid var(--brand-gold);
  color: var(--text-light);
  font-family: var(--font-body);
  padding: 10px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  width: 100%;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-ivory);
  background-color: rgba(247, 244, 236, 0.12);
  box-shadow: 0 0 10px rgba(199, 162, 91, 0.3);
}

label {
  color: var(--brand-gold);
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 8px;
  display: block;
}

/* =========================================
   CARDS & CONTAINERS
   ========================================= */

.card {
  background: linear-gradient(135deg, rgba(15, 61, 62, 0.4) 0%, rgba(10, 40, 41, 0.4) 100%);
  border: 1px solid rgba(199, 162, 91, 0.2);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(199, 162, 91, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.card-header {
  background: linear-gradient(90deg, var(--brand-forest-green) 0%, var(--brand-gold) 100%);
  color: var(--text-light);
  padding: 15px;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
}

.card-body {
  padding: 15px;
  color: var(--text-light);
}

.container,
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* =========================================
   TABLES
   ========================================= */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

thead {
  background: linear-gradient(90deg, #0F3D3E 0%, #051415 100%);
  border-bottom: 3px solid var(--brand-gold);
}

thead th {
  color: var(--brand-gold);
  padding: 15px;
  text-align: left;
  font-family: var(--font-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

tbody tr {
  border-bottom: 1px solid rgba(199, 162, 91, 0.1);
  transition: all 0.3s ease;
}

tbody tr:hover {
  background-color: rgba(199, 162, 91, 0.1);
  box-shadow: inset 0 0 10px rgba(199, 162, 91, 0.05);
}

td {
  padding: 12px 15px;
  color: var(--text-light);
}

/* =========================================
   ALERTS & NOTIFICATIONS
   ========================================= */

.alert,
.notification {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  border-left: 4px solid;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.alert-success,
.notification.success {
  background: linear-gradient(90deg, rgba(39, 174, 96, 0.15) 0%, rgba(39, 174, 96, 0.05) 100%);
  color: #5FD3BC;
  border-left-color: #27AE60;
}

.alert-danger,
.notification.error {
  background: linear-gradient(90deg, rgba(231, 76, 60, 0.15) 0%, rgba(231, 76, 60, 0.05) 100%);
  color: #FF6B6B;
  border-left-color: #E74C3C;
}

.alert-warning {
  background: linear-gradient(90deg, rgba(230, 126, 34, 0.15) 0%, rgba(230, 126, 34, 0.05) 100%);
  color: #FFB84D;
  border-left-color: #E67E22;
}

.alert-info {
  background: linear-gradient(90deg, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0.05) 100%);
  color: #5DADE2;
  border-left-color: #3498DB;
}

/* =========================================
   FOOTER
   ========================================= */

footer,
.footer {
  background: linear-gradient(135deg, #C7A25B 0%, #a0822a 100%);
  border-top: 3px solid var(--brand-charcoal);
  padding: 40px 20px;
  margin-top: 60px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}

footer h5,
.footer h5 {
  font-family: var(--font-logo);
  background: linear-gradient(135deg, #F7F4EC 0%, #1C1C1C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px !important;
}

footer p,
.footer p {
  color: var(--brand-charcoal);
  line-height: 1.6;
  font-weight: 500;
}

footer a,
.footer a {
  color: var(--brand-charcoal);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover,
.footer a:hover {
  color: #1C1C1C;
  text-decoration: underline;
}

.footer .text-primary {
  color: var(--brand-charcoal) !important;
}

.footer .navbar-brand {
  white-space: normal;
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .footer h1.display-4 {
    font-size: calc(1.3rem + 1.5vw);
    word-break: break-word;
  }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .container,
  .admin-container {
    padding: 15px;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  td, th {
    padding: 8px 10px;
  }
}

@media (max-width: 992px) {
  .navbar-collapse {
    background: linear-gradient(180deg, #0F3D3E 0%, #051415 100%);
    padding: 10px 0;
  }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--brand-forest-green) !important;
}

.text-secondary {
  color: var(--brand-gold) !important;
}

.text-light {
  color: var(--text-light) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.bg-dark {
  background-color: var(--bg-dark) !important;
}

.bg-light {
  background-color: rgba(247, 244, 236, 0.1) !important;
}

.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-5 { margin-top: 2rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }

.section-title {
  font-family: var(--font-logo);
  color: var(--brand-ivory);
  font-size: 2rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 30px 0;
}

.position-relative {
  position: relative;
}

/* =========================================
   HERO SECTIONS
   ========================================= */

.hero {
  background: linear-gradient(135deg, #0F3D3E 0%, #051415 100%);
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(199, 162, 91, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  z-index: 1;
  position: relative;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  z-index: 1;
  position: relative;
}

/* =========================================
   MENU STYLING
   ========================================= */

.menu-section {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, rgba(15, 61, 62, 0.2) 0%, rgba(10, 40, 41, 0.2) 100%);
  border-radius: 10px;
  border: 2px solid var(--brand-gold);
}

.menu-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(199, 162, 91, 0.2);
  transition: all 0.3s ease;
}

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

.menu-item:hover {
  transform: translateX(8px);
  background: linear-gradient(90deg, rgba(199, 162, 91, 0.15) 0%, transparent 100%);
  padding-left: 10px;
}

.menu-item-name {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  color: var(--brand-ivory);
  font-weight: 600;
  margin-bottom: 5px;
}

.menu-item-description {
  color: var(--brand-ivory);
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.5;
  opacity: 0.9;
}

.menu-item-price {
  color: var(--brand-gold);
  font-weight: 700;
  font-family: var(--font-body);
}

/* =========================================
   ADMIN PANEL STYLING
   ========================================= */

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 992px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Dark scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--brand-gold);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-ivory);
}
