﻿/* PG Fine Wines — Global Theme Styles
   Moved from _Layout.cshtml <style> block.
   Loaded via <link> in _Layout.cshtml after all CDN stylesheets. */

:root {
    --pg-primary: #ff0000; /* Pure red - original theme */
    --pg-secondary: #2C1810; /* Dark brown */
    --pg-gold: #C6A15B; /* Gold accent */
    --pg-cream: #F8F4E9; /* Cream background */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--pg-cream);
    color: var(--pg-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.navbar {
    background: linear-gradient(135deg, var(--pg-primary) 0%, #cc0000 100%) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    min-height: 55px;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    padding: 0;
}

    .navbar-brand img {
        height: 32px;
        width: auto;
        filter: brightness(0) invert(1);
    }

.navbar-nav .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--pg-gold) !important;
    transform: translateY(-2px);
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.3rem;
    vertical-align: middle;
}

.navbar-nav .dropdown-menu {
    font-size: 0.85rem;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-brand {
        font-size: 1rem;
    }

        .navbar-brand img {
            height: 28px;
        }

    .navbar-nav .nav-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
}

@media (min-width: 1200px) {
    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        white-space: normal;
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
}

.footer {
    background: var(--pg-secondary);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

    .footer a {
        color: var(--pg-gold);
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }

.btn-primary {
    background: var(--pg-primary);
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background: var(--pg-secondary);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    }

.btn-outline-primary {
    border: 2px solid var(--pg-primary);
    color: var(--pg-primary);
    font-weight: 600;
}

    .btn-outline-primary:hover {
        background: var(--pg-primary);
        color: white;
        border-color: var(--pg-primary);
    }

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(255, 0, 0, 0.15);
    }

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: var(--pg-gold);
    }

.rating {
    color: var(--pg-gold);
}

    .rating i {
        margin: 0 2px;
    }

.address-bar {
    background: var(--pg-secondary);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

    .address-bar i {
        color: var(--pg-gold);
        margin-right: 8px;
    }

.parallax-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1506377247377-2a5b3b417ebb?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    margin-bottom: 60px;
    color: white;
}

@media (max-width: 768px) {
    .parallax-hero {
        background-attachment: scroll;
    }
}

/* Notification Styles */
.notification-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.notification-dropdown-item {
    white-space: normal;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

    .notification-dropdown-item:last-child {
        border-bottom: none;
    }

    .notification-dropdown-item:hover {
        background-color: #fff0f0;
    }

    .notification-dropdown-item.unread {
        background-color: #fff5f5;
        border-left: 3px solid var(--pg-primary);
    }

.notification-dropdown {
    max-width: 380px;
    padding: 0;
}

/* Dropdown Headers */
.dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

/* Warning pulse for notification bell */
@keyframes pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(198, 161, 91, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(198, 161, 91, 0);
    }
}

.notification-bell-warning {
    animation: pulse-warning 2s infinite;
    color: var(--pg-gold) !important;
}

/* Text colors */
.text-primary {
    color: var(--pg-primary) !important;
}

.bg-primary {
    background-color: var(--pg-primary) !important;
}

.border-primary {
    border-color: var(--pg-primary) !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 0.5s ease-in-out;
}

/* ── PG Fine Wines Custom Component Styles ────────────────────────────── */

/* PG Fine Wines Custom Styles */

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1 {
    animation: fadeInUp 1s ease;
}

.hero-section .lead {
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-section .btn-group {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* Category cards hover effect */
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

    .category-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(139, 30, 63, 0.2);
    }

        .category-card:hover i {
            transform: scale(1.2);
            color: var(--pg-gold);
        }

/* Wine card hover effects */
.wine-card {
    position: relative;
    overflow: hidden;
}

    .wine-card .card-img-overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .wine-card:hover .card-img-overlay {
        opacity: 1;
    }

/* Rating stars animation */
.rating i {
    transition: transform 0.2s ease;
}

.rating:hover i {
    transform: scale(1.2);
}

/* Business badge for B2B users */
.business-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--pg-gold);
    color: var(--pg-secondary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Loading spinner for async operations */
.pg-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--pg-cream);
    border-top: 3px solid var(--pg-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ── Form input red border theme ─────────────────────────────────────────────
   Applies a red RGB(255,0,0) border to all interactive form elements
   site-wide, consistent with the PG Fine Wines primary colour.
   Focus state deepens the shadow for clear visual feedback.
   Bootstrap's default .form-control, .form-select, .form-check-input,
   and .form-switch styles are all overridden here.
───────────────────────────────────────────────────────────────────────────── */

/* Text inputs, textareas, number inputs */
.form-control {
    border: 1.5px solid rgb(255, 0, 0) !important;
    border-radius: 4px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

    .form-control:focus {
        border-color: rgb(255, 0, 0) !important;
        box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25) !important;
        outline: none;
    }

/* Select / dropdown boxes */
.form-select {
    border: 1.5px solid rgb(255, 0, 0) !important;
    border-radius: 4px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

    .form-select:focus {
        border-color: rgb(255, 0, 0) !important;
        box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25) !important;
        outline: none;
    }

/* Checkboxes and radio buttons */
.form-check-input {
    border: 1.5px solid rgb(255, 0, 0) !important;
}

    .form-check-input:checked {
        background-color: rgb(255, 0, 0) !important;
        border-color: rgb(255, 0, 0) !important;
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25) !important;
    }

/* Toggle / switch (form-switch) */
.form-switch .form-check-input {
    border: 1.5px solid rgb(255, 0, 0) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,0,0,0.5)'/%3e%3c/svg%3e");
}

    .form-switch .form-check-input:checked {
        background-color: rgb(255, 0, 0) !important;
        border-color: rgb(255, 0, 0) !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    }

/* Input group borders (e.g. $ prefix + input) */
.input-group .form-control,
.input-group .form-select {
    border: 1.5px solid rgb(255, 0, 0) !important;
}

.input-group-text {
    border: 1.5px solid rgb(255, 0, 0) !important;
    background-color: #fff8f8;
    color: rgb(180, 0, 0);
    font-weight: 600;
}

/* Validation states — keep red for invalid, green for valid */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

/* ── Product Image Lightbox ──────────────────────────────────────────────── */
[data-product-modal] {
    cursor: zoom-in;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

    [data-product-modal]:hover {
        opacity: 0.88;
        transform: scale(1.02);
    }

    [data-product-modal]:focus {
        outline: 3px solid var(--pg-gold, #c9a84c);
        outline-offset: 3px;
    }
