/* ===== B&O BEVERAGE - MAIN STYLESHEET ===== */
/* VERSION: 2.0.1 | DEPLOYED: 2025-11-06 | HOVER EFFECTS + CACHE-BUST */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #D4AF37;
    --primary-dark: #1a1a2e;
    --secondary-dark: #16213e;
    --accent-blue: #0f3460;
    --text-light: #f8f9fa;
    --text-dark: #2c3e50;
    --bg-light: #f5f5f5;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 15px rgba(0,0,0,0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-logo {
    height: 50px;
    width: auto;
    max-width: 300px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.admin-link {
    background-color: rgba(255,255,255,0.1);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bar.png') center/cover;
    filter: brightness(0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    animation: fadeInUp 1s;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: #f4c350;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--accent-blue);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 80px 20px;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--bg-light);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* ===== CATALOG SECTION ===== */
.catalog-header {
    background: linear-gradient(rgba(26,26,26,0.8), rgba(26,26,26,0.8)), url('../images/bubbles-bg.png') center/cover;
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.catalog {
    padding: 60px 20px;
    background-color: white;
}

.filter-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-section label {
    font-weight: bold;
}

.filter-section select,
.filter-section input[type="text"] {
    padding: 10px;
    border: 2px solid var(--bg-light);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.filter-section select:focus,
.filter-section input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-gold);
}

#country-filter {
    min-width: 200px;
}

#search-box {
    flex: 1;
    min-width: 250px;
}

/* ===== BEER GRID ===== */
.beer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.beer-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.beer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-gold);
}

.beer-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.beer-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.country-tag {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--primary-gold);
}

.beer-size,
.beer-type {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* ===== BEER DETAIL PAGE ===== */
.beer-detail {
    padding: 60px 20px;
    background-color: white;
}

.back-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 2rem;
    display: inline-block;
}

.back-link:hover {
    text-decoration: underline;
}

.beer-detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.beer-detail-image {
    text-align: center;
}

.beer-detail-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.country-tag-large {
    font-size: 1.3rem;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    margin: 1rem 0;
    border: 2px solid var(--primary-gold);
}

.beer-specs {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: bold;
    color: #666;
}

.beer-description {
    margin: 2rem 0;
}

.beer-description h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.beer-description ul {
    margin-left: 1.5rem;
}

.beer-description li {
    margin-bottom: 0.5rem;
}

.contact-cta {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(15, 52, 96, 0.1));
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
    border: 2px solid var(--primary-gold);
}

/* ===== ADMIN PANEL ===== */
.admin-panel {
    padding: 40px 20px;
    background-color: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-notice {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ddd;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 1rem 2rem;
    background-color: #e9ecef;
    border: none;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.admin-tab:hover {
    background-color: #dee2e6;
}

.admin-tab.active {
    background-color: white;
    border-bottom: 2px solid white;
    margin-bottom: -2px;
    color: var(--primary-gold);
}

.admin-content {
    display: none;
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.admin-content.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--bg-light);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.contact-card a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: bold;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* ===== LOADING & MESSAGES ===== */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .beer-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-tabs {
        flex-direction: column;
        width: 100%;
    }

    .admin-tab {
        width: 100%;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* ===== CLICKABLE CARD HOVER EFFECTS ===== */
a.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.beer-card-link {
    display: block;
}

.beer-card-link .beer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
