/* Advanced CSS utilities for Rumi Konağı Website */

/* Custom CSS variables */
:root {
  /* Enhanced color palette */
  --navy-dark: #08152a;
  --navy-light-translucent: rgba(21, 42, 69, 0.95);
  --gold-dark: #bb9626;
  --gold-extra-light: #f2e8c4;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-color-dark: rgba(0, 0, 0, 0.15);
  
  /* Border radii */
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 10px;
  --radius-xl: 15px;
  --radius-rounded: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 5px var(--shadow-color);
  --shadow-md: 0 5px 15px var(--shadow-color);
  --shadow-lg: 0 15px 35px var(--shadow-color);
  --shadow-xl: 0 25px 50px var(--shadow-color);
  --shadow-inner: inset 0 2px 5px var(--shadow-color);
  
  /* Z-indices */
  --z-backdrop: -1;
  --z-below: 1;
  --z-normal: 10;
  --z-above: 20;
  --z-modal: 30;
  --z-popover: 40;
  --z-tooltip: 50;
}

/* Enhanced shadows with color tinting */
.shadow-gold-sm {
  box-shadow: 0 2px 5px rgba(212, 175, 55, 0.15);
}

.shadow-gold-md {
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

.shadow-gold-lg {
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.shadow-navy-sm {
  box-shadow: 0 2px 5px rgba(10, 26, 47, 0.15);
}

.shadow-navy-md {
  box-shadow: 0 5px 15px rgba(10, 26, 47, 0.15);
}

.shadow-navy-lg {
  box-shadow: 0 15px 35px rgba(10, 26, 47, 0.15);
}

/* Border utilities */
.border-gold-light {
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.border-gold {
  border: 1px solid var(--gold);
}

.border-gold-dark {
  border: 1px solid var(--gold-dark);
}

.border-translucent {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Border radius utilities */
.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-rounded);
}

/* Background utilities */
.bg-translucent-dark {
  background-color: rgba(10, 26, 47, 0.5);
}

.bg-translucent-light {
  background-color: rgba(255, 255, 255, 0.1);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

.bg-gold-gradient-reversed {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
}

.bg-navy-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.bg-navy-dark-gradient {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

/* Backdrop filters */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-md {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Glass morphism */
.glass-dark {
  background: rgba(10, 26, 47, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Positioning utilities */
.center-absolute {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.center-vertical {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.center-horizontal {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Visual dividers */
.divider-gold {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 30px 0;
}

.divider-light {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  margin: 30px 0;
}

.divider-dark {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  margin: 30px 0;
}

/* Flex utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/* Grid layouts */
.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.grid-auto-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* Spacing utilities */
.space-y-sm > * + * {
  margin-top: 10px;
}

.space-y-md > * + * {
  margin-top: 20px;
}

.space-y-lg > * + * {
  margin-top: 30px;
}

.space-x-sm > * + * {
  margin-left: 10px;
}

.space-x-md > * + * {
  margin-left: 20px;
}

.space-x-lg > * + * {
  margin-left: 30px;
}

/* Aspect ratio containers */
.aspect-square {
  position: relative;
  padding-bottom: 100%;
}

.aspect-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
}

.aspect-portrait {
  position: relative;
  padding-bottom: 150%; /* 2:3 */
}

.aspect-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Visually hidden (accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
}
