/* VIP User Area Theme
   Shared styles for:
   - kullanici-dashboard.php
   - rezervasyon-detay.php
   - mesajlar.php
   - profilim.php
   - rezervasyon-takvimi.php
   - odemelerim.php
   - profil-ayar.php
*/

/* Global padding so fixed bottom nav never covers content */
@media (max-width: 991.98px) {
  body.has-mobile-user-nav {
    padding-bottom: 78px;
  }
}

/* Hero */
.vip-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #000000;
  padding: 54px 0 34px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e9ecef;
}
.vip-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="120" height="120" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="2" fill="rgba(255,255,255,0.10)"/><circle cx="78" cy="44" r="2" fill="rgba(255,255,255,0.08)"/></svg>');
  opacity: 0.55;
  animation: vipFloatBg 22s linear infinite;
}
@keyframes vipFloatBg {
  0% { transform: translate(0,0); }
  100% { transform: translate(60px, 60px); }
}
.vip-hero .container { position: relative; z-index: 1; }

.vip-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f8f9fa;
  border: 2px solid #000000;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 0.85rem;
  color: #000000;
}
.vip-chip i { color: #5b9bd5; }

.vip-welcome {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.vip-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}
.vip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #5b9bd5 50%, transparent 100%);
  opacity: 0.6;
}
.vip-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #5b9bd5 0%, transparent 50%, #5b9bd5 100%);
  opacity: 0.3;
}
.vip-title {
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0 0 12px 0;
  color: #212529;
  border-bottom: none;
  padding-bottom: 0;
  position: relative;
  padding-left: 12px;
}
.vip-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #5b9bd5 0%, transparent 100%);
  border-radius: 2px;
}
.vip-sub {
  color: #000000;
  margin: 12px 0 0 0;
  font-size: 0.95rem;
}
.vip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.vip-badge {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #000000;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
.vip-badge strong { color: #000000; }

.vip-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.vip-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 0.95rem;
  transition: all .2s ease;
}
.vip-action.primary {
  background: #2a5298;
  color: #ffffff;
  border: 2px solid #2a5298;
}
.vip-action.primary:hover {
  background: #1e3c72;
  border-color: #1e3c72;
}
.vip-action.secondary {
  background: #ffffff;
  border: 2px solid #dee2e6;
  color: #000000;
}
.vip-action.secondary:hover {
  background: #f8f9fa;
  border-color: #6c757d;
}
.vip-action i {
  color: #5b9bd5;
}
.vip-action:hover { transform: translateY(-1px); }

/* Content */
.vip-section {
  padding: 22px 0 34px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  min-height: calc(100vh - 260px);
}
.mobile-nav-pad { padding-bottom: 78px; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
}
.section-title h2 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
  color: #212529;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: none;
  padding-bottom: 0;
  position: relative;
  padding-left: 12px;
}
.section-title h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #5b9bd5 0%, transparent 100%);
  border-radius: 2px;
}
.section-title h2 i {
  color: #5b9bd5;
  font-size: 1.1rem;
}
.section-title h2 i {
  color: #5b9bd5;
}

/* Stat tiles */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-tile {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.stat-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #5b9bd5 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-tile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #5b9bd5 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-tile-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-tile:hover {
  border-color: #5b9bd5;
  box-shadow: 0 2px 8px rgba(91, 155, 213, 0.15);
  transform: translateY(-1px);
}
.stat-tile:hover::before {
  opacity: 0.6;
}
.stat-tile:hover::after {
  opacity: 0.4;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #5b9bd5;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.stat-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #5b9bd5 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.stat-tile:hover .stat-icon {
  background: #e7f3ff;
  border-color: #5b9bd5;
  color: #2a5298;
}
.stat-tile:hover .stat-icon::before {
  opacity: 0.6;
}
.stat-value {
  font-weight: 700;
  font-size: 1.75rem;
  color: #212529;
  line-height: 1.2;
  flex: 1;
}
.stat-label {
  color: #6c757d;
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 0;
}

/* Lists / Cards */
.vip-list-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
}
.vip-list-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #5b9bd5 50%, transparent 100%);
  opacity: 0.5;
}
.vip-list-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #5b9bd5 0%, transparent 50%);
  opacity: 0.3;
}
.vip-list-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f3f5;
  position: relative;
  transition: all 0.2s ease;
}
.vip-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #5b9bd5 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.vip-list-item:hover {
  background: #f8f9fa;
  padding-left: 24px;
}
.vip-list-item:hover::before {
  opacity: 0.5;
}
.vip-list-item:last-child { border-bottom: none; }
.item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.item-title {
  font-weight: 900;
  color: #000000;
  margin: 0;
  font-size: 1rem;
}
.item-sub {
  margin: 6px 0 0 0;
  color: #6c757d;
  font-size: 0.88rem;
}
.item-sub strong {
  color: #000000;
}

/* Pills / Badges */
.pill {
  padding: 6px 12px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}
.pill:hover::before {
  left: 100%;
}
.pill i {
  font-size: 0.85rem;
  flex-shrink: 0;
}
.badge-success { 
  background: #d4edda; 
  color: #155724; 
  border-color: #c3e6cb;
}
.badge-success i {
  color: #28a745;
}
.badge-warning { 
  background: #fff3cd; 
  color: #856404; 
  border-color: #ffeaa7;
}
.badge-warning i {
  color: #f39c12;
}
.badge-danger { 
  background: #f8d7da; 
  color: #721c24; 
  border-color: #f5c6cb;
}
.badge-danger i {
  color: #dc3545;
}
.badge-info { 
  background: #d1ecf1; 
  color: #0c5460; 
  border-color: #bee5eb;
}
.badge-info i {
  color: #17a2b8;
}
.badge-secondary { 
  background: #e9ecef; 
  color: #495057; 
  border-color: #dee2e6;
}
.badge-secondary i {
  color: #6c757d;
}

/* Buttons */
.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid #dee2e6;
  background: #ffffff;
  color: #000000;
  transition: all 0.2s ease;
}
.btn-mini:hover {
  background: #f8f9fa;
  border-color: #6c757d;
}
.btn-mini i {
  color: #5b9bd5;
}
.btn-mini.primary {
  background: #5b9bd5;
  border: 2px solid #5b9bd5;
  color: #ffffff;
}
.btn-mini.primary:hover {
  background: #4a8bc4;
  border-color: #4a8bc4;
}
.btn-mini.primary i {
  color: #ffffff;
}
.btn-mini.gold {
  background: #ef4444;
  border: 2px solid #ef4444;
  color: #ffffff;
}
.btn-mini.gold:hover {
  background: #dc2626;
  border-color: #dc2626;
}
.btn-mini.gold i {
  color: #ffffff;
}

/* Mobile bottom nav */
.mobile-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #ffffff;
  border-top: 2px solid #000000;
  padding: 10px 10px env(safe-area-inset-bottom);
  z-index: 999;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}
.mobile-bottom-nav .nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.mobile-bottom-nav a {
  text-decoration: none;
  color: #6c757d;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}
.mobile-bottom-nav a.active {
  color: #2a5298;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}
.mobile-bottom-nav a i {
  font-size: 1.15rem;
  color: #5b9bd5;
}
.mobile-bottom-nav a.active i {
  color: #2a5298;
}

@media (min-width: 992px) {
  .vip-hero { padding: 70px 0 44px; }
  .vip-welcome { grid-template-columns: 1.2fr 0.8fr; align-items: stretch; }
  .vip-actions { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .mobile-bottom-nav { display: none; }
  .mobile-nav-pad { padding-bottom: 0; }
}


