/*
Theme Name: RetroWP
Theme URI: https://example.com/retrowp
Author: Lasse Nielsen
Author URI: https://example.com
Description: Letvægts, SEO-venligt WordPress-tema om retro fodboldtrøjer, bygget med Bootstrap 5.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.2
Text Domain: retrowp
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: bootstrap, responsive, retro, blog, minimal
*/

:root {
  --retro-primary: #0b3d2e;
  --retro-accent: #e8c547;
  --retro-bg: #f8f9fa;
  --retro-text: #212529;
}

html { scroll-behavior: smooth; }
body { background: var(--retro-bg); color: var(--retro-text); }

a { color: var(--retro-primary); }
a:hover { color: #06281e; }

.navbar-retro { background: #ffffff; border-bottom: 1px solid #e9ecef; }
.retro-brand { color: var(--retro-primary); font-weight: 700; letter-spacing: .5px; }

/* Desktop nav spacing and wrap to avoid overlap */
.navbar-nav > li { position: relative; }
.navbar-nav > li > a { padding: .5rem 1rem; }
.navbar-nav { gap: .25rem; }
@media (min-width: 992px) {
  .navbar-retro .navbar-nav { display: flex; align-items: center; flex-wrap: wrap; }
}

/* Mobile menu button with small label */
.mobile-menu-btn small { font-size: 10px; color: #495057; }

/* Offcanvas width 50% & dim rest (Bootstrap håndterer backdrop) */
.mobile-offcanvas { width: 50vw !important; max-width: 420px; }
@media (max-width: 480px) { .mobile-offcanvas { width: 80vw !important; } }

/* Offcanvas visual styling */
.mobile-offcanvas { box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15); border-right: 1px solid #e9ecef; }

/* Show/Hide 'Luk' link only when offcanvas is open */
/* Fjernet ekstern 'Luk'-link; knap findes i offcanvas-body */

/* WP admin bar offset: flyt sticky header/offcanvas ned under admin-bjælken */
.admin-bar .navbar-retro.sticky-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .navbar-retro.sticky-top { top: 46px; } }

.admin-bar .offcanvas { top: 32px; height: calc(100% - 32px); }
@media (max-width: 782px) { .admin-bar .offcanvas { top: 46px; height: calc(100% - 46px); } }

.retro-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.retro-card .price { color: #6c757d; font-weight: 600; }

.retro-hero { background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%); }
.retro-section-title { font-weight: 700; letter-spacing: .3px; }

/* Minimal utility for CLS safety */
.ratio-4x3 { position: relative; width: 100%; padding-top: 75%; }
.ratio-4x3 > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }


/* Contrast button using accent color */
.btn-contrast { background-color: var(--retro-accent); color: #212529; border-color: var(--retro-accent); }
.btn-contrast:hover { background-color: #d6b23f; border-color: #d6b23f; color: #212529; }


