/* Shotifi - Custom Styles */

:root {
  --sf-dark: #0a0a0a;
  --sf-darker: #141414;
  --sf-card: #1a1a1a;
  --sf-border: #222;
  --sf-red: #E84545;
  --sf-red-dark: #d43a3a;
  --sf-text: #e0e0e0;
  --sf-text-muted: #888;
  --sf-bg: #0f0f0f;
  --sf-bg-light: #f5f5f5;
  --sf-white: #ffffff;
  --sf-green: #2ecc71;
  --sf-amber: #f39c12;
}

/* Typography */
body {
  font-family: 'Inter', sans-serif;
  color: #333;
  background: var(--sf-bg-light);
  font-size: 0.95rem;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* Navbar */
.navbar {
  background: var(--sf-dark);
  box-shadow: 0 1px 10px rgba(0,0,0,0.3);
  padding: 0.6rem 0;
}

.navbar .brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--sf-red);
  letter-spacing: -0.5px;
}

.navbar .nav-link {
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  transition: color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  filter: invert(1);
}

.navbar-toggler:focus { box-shadow: none; }

.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--sf-red);
  color: #fff;
  font-size: 0.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Buttons */
.btn-shotifi {
  background: var(--sf-red);
  color: #fff;
  border: none;
  padding: 0.4rem 1.2rem;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.2px;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-shotifi:hover {
  background: var(--sf-red-dark);
  color: #fff;
}

/* Hero */
.hero {
  background: var(--sf-dark);
  color: #fff;
  padding: 5rem 0;
  position: relative;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero .lead {
  font-size: 1.05rem;
  opacity: 0.7;
  font-weight: 300;
  max-width: 500px;
  line-height: 1.6;
}

.hero-stats {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sf-red);
}

.hero-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.section-subtitle {
  color: #999;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb-nav {
  padding: 0.75rem 0;
  font-size: 0.8rem;
  color: #999;
}

.breadcrumb-nav a {
  color: var(--sf-red);
  text-decoration: none;
}

.breadcrumb-nav .sep {
  margin: 0 0.4rem;
  color: #ccc;
}

/* Venue Card */
.venue-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.venue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  color: inherit;
}

.venue-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.venue-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.venue-card:hover .venue-card-img img {
  transform: scale(1.05);
}

.venue-card-type {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.venue-card-body {
  padding: 0.75rem;
}

.venue-card-body h5 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.venue-card-meta {
  font-size: 0.75rem;
  color: #999;
  margin: 0;
}

/* Event Card */
.event-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  color: inherit;
}

.event-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.event-card:hover .event-card-img img {
  transform: scale(1.05);
}

.event-card-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.event-card-body {
  padding: 0.75rem;
}

.event-card-date {
  font-size: 0.65rem;
  color: var(--sf-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.event-card-body h5 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.event-card-venue {
  font-size: 0.75rem;
  color: #999;
  margin: 0;
}

/* Town Card */
.town-card {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.town-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.town-card h5 {
  color: #333;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.town-card p {
  color: #999;
  font-size: 0.8rem;
  margin: 0;
}

.town-card:hover h5 {
  color: var(--sf-red);
}

/* Venue Header */
.venue-header {
  background: var(--sf-dark);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 3rem 0 2rem;
}

.venue-name {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.venue-location {
  opacity: 0.7;
  font-size: 0.9rem;
}

.venue-info-card {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 1rem;
}

.venue-info-card a {
  color: var(--sf-red);
  text-decoration: none;
}

/* Event Header */
.event-header {
  background: var(--sf-dark);
  color: #fff;
  padding: 2rem 0;
}

.event-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.event-meta {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (min-width: 576px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 992px) { .photo-grid { grid-template-columns: repeat(6, 1fr); } }

.photo-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-grid-item:hover img {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px;
}

.photo-grid-item:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay-actions {
  display: flex;
  gap: 6px;
}

.photo-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #333;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.photo-action-btn:hover {
  background: var(--sf-red);
  color: #fff;
}

/* Product Options */
.product-option {
  background: #f8f8f8;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
}

/* Venue CTA */
.venue-cta {
  background: var(--sf-dark);
  color: #fff;
  padding: 3rem 0;
}

.venue-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.venue-cta p {
  opacity: 0.6;
  max-width: 450px;
  margin: 0 auto 1rem;
  font-size: 0.9rem;
  font-weight: 300;
}

/* Footer */
.site-footer {
  background: var(--sf-dark);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 0 1.25rem;
  margin-top: 0;
  font-size: 0.8rem;
}

.site-footer h5,
.site-footer h6 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.site-footer .footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--sf-red);
}

.site-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: #fff; }
.site-footer .text-muted { color: rgba(255,255,255,0.4) !important; }
.site-footer hr { border-color: rgba(255,255,255,0.1); margin: 1.5rem 0 0.75rem; }

/* Back to top */
.btn-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sf-red);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

.btn-back-to-top.show { display: flex; }

/* 404 */
.page-404-content {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.page-404-content h1 {
  font-size: 6rem;
  color: var(--sf-red);
  font-weight: 800;
}

/* Admin Bar (front-end) */
.admin-bar {
  background: #1a1a1a;
  padding: 0.3rem 0;
  font-size: 0.75rem;
}

.admin-bar a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.admin-bar a:hover { color: #fff; }
.admin-bar .admin-bar-logout { color: rgba(255,255,255,0.3); }
.admin-bar .admin-bar-logout:hover { color: #e66; }

/* Admin Top Bar */
.admin-topbar {
  background: #1a1a1a;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
}

.admin-topbar a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.admin-topbar a:hover { color: #fff; }

/* Admin Sidebar */
.admin-sidebar {
  background: var(--sf-dark);
  color: #fff;
  width: 200px;
  flex-shrink: 0;
  min-height: calc(100vh - 34px);
  padding: 1rem;
}

.admin-sidebar a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  display: block;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.15rem;
  font-size: 0.82rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.admin-sidebar-overlay { display: none; }

@media (max-width: 991.98px) {
  .admin-sidebar {
    position: fixed;
    top: 34px;
    left: -220px;
    width: 200px;
    height: calc(100vh - 34px);
    z-index: 1050;
    transition: left 0.25s;
    overflow-y: auto;
  }
  .admin-sidebar.open { left: 0; }
  .admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 34px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
  }
  .admin-sidebar-overlay.open { display: block; }
}

.admin-content { padding: 2rem; }

/* Stat Cards */
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-left: 3px solid #ddd;
}

.stat-card .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.15rem;
}

.stat-card-green { border-left-color: var(--sf-green); }
.stat-card-red { border-left-color: var(--sf-red); }
.stat-card-amber { border-left-color: var(--sf-amber); }
.stat-card-blue { border-left-color: #5B8FC7; }
.stat-card-purple { border-left-color: #8B6BAE; }
.stat-card-teal { border-left-color: #4CA8A0; }

/* Collapse chevron */
.collapse-toggle-chevron { transition: transform 0.25s; }
.collapsed .collapse-toggle-chevron { transform: rotate(-90deg); }

/* Lazy load */
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s; }
img[loading="lazy"].loaded, img.loaded { opacity: 1; }

/* Photo admin card */
.photo-admin-card { border-radius: 4px; overflow: hidden; }

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0; }
  .section { padding: 2rem 0; }
}

@media (max-width: 575.98px) {
  .hero h1 { font-size: 1.75rem; }
  .section-title { font-size: 1.3rem; }
  .venue-name { font-size: 1.5rem; }
  .event-header h1 { font-size: 1.25rem; }
  .photo-grid { gap: 2px; }
}

/* Mobile: center headers */
@media (max-width: 767.98px) {
  .event-header { text-align: center; }
  .venue-header { text-align: center; }
  .venue-header .d-flex { flex-direction: column; align-items: center !important; }
}
