/* ========================================
   Sporthilfe Ticket System - Site Styles
   Aligned with www.sporthilfe.it design
   ======================================== */

:root {
    --sh-dark: #161616;
    --sh-dark-lighter: #1e1e1e;
    --sh-gold: #85754e;
    --sh-gold-light: #a08e60;
    --sh-accent: #ffd500;
    --sh-white: #ffffff;
    --sh-text: #222222;
    --sh-text-light: #666666;
    --sh-text-muted: #999999;
    --sh-border: rgba(255, 255, 255, 0.25);
    --sh-border-light: #e0e0e0;
    --sh-bg: #f5f5f5;
    --sh-red: #e01921;
}

/* Base */
html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--sh-text);
    background-color: var(--sh-bg);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background-color: var(--sh-dark) !important;
    border-bottom: 1px solid var(--sh-border);
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 10000;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--sh-accent) !important;
}

.nav-link.active {
    color: var(--sh-accent) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    background-color: var(--sh-dark);
    border: 1px solid var(--sh-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1050;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--sh-white);
}

.dropdown-item.active {
    background-color: var(--sh-accent);
    color: var(--sh-dark);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(rgba(22, 22, 22, 0.75), rgba(22, 22, 22, 0.75)), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--sh-white);
    padding: 5rem 0;
    margin-bottom: 2rem;
}

.hero-title {
    font-weight: 900;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-weight: 300;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--sh-white);
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--sh-dark) !important;
    color: var(--sh-white) !important;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: 3px solid var(--sh-accent);
}

.card-header.bg-primary {
    background-color: var(--sh-dark) !important;
    color: var(--sh-white) !important;
}

.card-header h5 {
    color: inherit !important;
}

.card-header.bg-success {
    background-color: #198754 !important;
    border-bottom-color: #198754;
}

.card-header.bg-warning {
    background-color: #ffc107 !important;
    color: var(--sh-dark) !important;
    border-bottom-color: #e0a800;
}

.card-header.bg-light {
    background-color: var(--sh-bg) !important;
    color: var(--sh-text) !important;
    border-bottom-color: var(--sh-border-light);
}

.card-body {
    padding: 1.5rem;
}

.card-img-top {
    border-radius: 12px 12px 0 0;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--sh-accent);
    border-color: var(--sh-accent);
    color: var(--sh-dark);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #e6c000;
    border-color: #e6c000;
    color: var(--sh-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 213, 0, 0.35);
}

.btn-success {
    border-radius: 10px;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.btn-outline-secondary {
    border-radius: 10px;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ========================================
   Forms
   ======================================== */
.form-control {
    border-radius: 10px;
    border: 1px solid var(--sh-border-light);
    padding: 0.65rem 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--sh-accent);
    box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.2);
}

.form-label {
    font-weight: 600;
    color: var(--sh-text);
    margin-bottom: 0.4rem;
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    border-radius: 10px;
}

/* ========================================
   Badges
   ======================================== */
.badge {
    border-radius: 6px;
    font-weight: 600;
    padding: 0.4em 0.75em;
}

.badge.bg-success {
    background-color: var(--sh-accent) !important;
    color: var(--sh-dark) !important;
}

/* ========================================
   Tables
   ======================================== */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--sh-bg);
    border-bottom: 2px solid var(--sh-border-light);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--sh-text-light);
}

/* ========================================
   Text Utilities
   ======================================== */
.text-primary {
    color: var(--sh-dark) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--sh-text);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background-color: var(--sh-dark);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3rem;
}

.footer-main {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-main h6 {
    color: var(--sh-accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-main p,
.footer-main li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-main a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-main a:hover {
    color: var(--sh-accent);
}

.footer-main ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--sh-accent);
    margin-top: 0.15rem;
    min-width: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--sh-accent);
    color: var(--sh-dark);
}

.footer-bottom {
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--sh-accent);
}

/* ========================================
   Login Card
   ======================================== */
.login-card {
    max-width: 420px;
    margin: 2rem auto;
}

/* ========================================
   Input Group (Ticket Quantity Selector)
   ======================================== */
.input-group .btn {
    border-radius: 10px 0 0 10px;
}

.input-group .btn:last-child {
    border-radius: 0 10px 10px 0;
}

.input-group .form-control {
    border-radius: 0;
}

.input-group .form-control[readonly].ticket-quantity {
    background-color: var(--sh-dark);
    color: #fff;
}

/* ========================================
   Focus Styles
   ======================================== */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(255, 213, 0, 0.4);
}

/* Navbar bottom accent line */
.navbar {
    border-bottom: 2px solid var(--sh-accent);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .footer-main {
        padding: 2rem 0 1.5rem;
    }

    .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}
