/*
Theme Name: Auction House Theme
Theme URI: https://theauctionhousenorthshields.co.uk
Description: Custom theme matching auctions.theauctionhousenorthshields.co.uk exactly
Author: Smooth Byte IT
Version: 1.0.1
Template: twentytwentyfour
*/

/* =============================================
   Brand Colors - Auction House North Shields
   ============================================= */
:root {
    --brand-primary: #295235;
    --brand-primary-hover: #1e3d28;
    --brand-secondary: #055c28;
    --header-bg: #ffffff;
    --header-link: #055c28;
    --header-link-hover: #5ac891;
    --primary-600: #295235;
    --primary-700: #055c28;
    --primary-800: #055c28;
    --accent-500: #5ac891;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* Brand utility classes */
.brand-text { color: var(--brand-primary) !important; }
.brand-text-hover:hover { color: var(--brand-primary-hover) !important; }
.brand-bg { background-color: var(--brand-primary); }
.brand-bg-hover:hover { background-color: var(--brand-primary-hover); }
.header-link { color: var(--header-link) !important; }
.header-link-hover:hover { color: var(--header-link-hover) !important; }

/* Desktop nav — explicit responsive CSS (not relying on Tailwind hidden/md:flex) */
#desktop-nav {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
}
@media (min-width: 768px) {
    #desktop-nav {
        display: flex !important;
        flex-direction: row !important;
    }
    #mobileMenuToggle {
        display: none !important;
    }
}
@media (max-width: 767px) {
    #desktop-nav {
        display: none !important;
    }
    #mobileMenuToggle {
        display: block !important;
    }
}
#desktop-nav li {
    list-style: none;
    display: inline-block !important;
    float: none !important;
    margin: 0;
}
#desktop-nav a {
    color: var(--header-link) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
    white-space: nowrap;
}
#desktop-nav a:hover { color: var(--header-link-hover) !important; }

/* AuctionForge login buttons in header */
#header-auth-buttons .user_nav {
    margin: 0;
    padding: 0;
}
#header-auth-buttons .user_nav ul.menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
#header-auth-buttons .user_nav ul.menu li {
    display: inline-flex !important;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
/* Hide the search icon in header — not needed */
#header-auth-buttons .user_nav ul.menu li:has(.search-link) {
    display: none !important;
}
/* Login link */
#header-auth-buttons .user_nav ul.menu li.wrpLoginLink a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--header-link) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}
#header-auth-buttons .user_nav ul.menu li.wrpLoginLink a:hover {
    color: var(--brand-primary) !important;
    background: rgba(41, 82, 53, 0.06);
}
#header-auth-buttons .user_nav ul.menu li.wrpLoginLink .icon-user {
    font-size: 1rem;
}
/* Register button — bright green pill */
#header-auth-buttons .user_nav ul.menu li.wrpRegisterLink a {
    display: inline-flex;
    align-items: center;
    background: var(--brand-accent) !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
#header-auth-buttons .user_nav ul.menu li.wrpRegisterLink a:hover {
    background: var(--brand-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
/* Fallback for browsers without :has() — hide search via first-child */
#header-auth-buttons .user_nav ul.menu li:first-child:not(.wrpLoginLink):not(.wrpRegisterLink) {
    display: none !important;
}

/* Override Tailwind .container max-width for AuctionForge pages */
/* AuctionForge needs full width for responsive lot grids (4/5/6 columns) */
.bp-container.container,
.bp-container-fluid.container,
.bp_auctions .container:not(.mx-auto),
body.bp_auctions .container {
    max-width: 100% !important;
    width: 100% !important;
}
/* Override lot card max-width — auto-fill full width on any screen */
.bp-lots .bp-lot {
    max-width: none !important;
    flex: 1 1 200px !important;
    min-width: 180px;
}
/* Override AuctionForge centering/spacing — force lots to fill full width */
.bp-lots.bp-d-flex,
.bp-lots.bp-d-flex.bp-f-wrap,
.bp-lots.bp-d-flex.bp-f-center,
.bp-lots.bp-d-flex.bp-f-wrap.bp-f-center.bp-md-f-around {
    justify-content: flex-start !important;
    width: 100% !important;
}
/* Ensure all parent containers are full width */
.bp-container,
.bp-container-fluid,
.bp-container.bp-fix-width-lot,
.bp-row.bp-fix-width-lot {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

/* Ensure AuctionForge bp-col basis classes are not overridden */
.bp-row .bp-col.bp-basis-25 { flex-basis: 25% !important; max-width: 25% !important; }
.bp-row .bp-col.bp-basis-33 { flex-basis: 33.3333% !important; max-width: 33.3333% !important; }
.bp-row .bp-col.bp-basis-50 { flex-basis: 50% !important; max-width: 50% !important; }
.bp-row .bp-col.bp-basis-66 { flex-basis: 66.6666% !important; max-width: 66.6666% !important; }
.bp-row .bp-col.bp-basis-75 { flex-basis: 75% !important; max-width: 75% !important; }

/* WordPress menu overrides to match reference nav */
.site-header ul { list-style: none; margin: 0; padding: 0; }
.site-header nav a {
    color: var(--header-link) !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    font-size: 1rem;
}
.site-header nav a:hover { color: var(--header-link-hover) !important; }
.site-header .custom-logo-link img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Ensure WordPress body doesn't add extra margin */
body { margin: 0 !important; padding: 0 !important; }
.wp-site-blocks { padding: 0 !important; }
.is-layout-constrained { padding: 0 !important; }

/* AuctionForge plugin overrides */
.bp-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}
.bp-header {
    background: white !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 1.5rem !important;
}
.bp-header h1 {
    font-size: 2.5rem !important;
    font-family: Georgia, serif !important;
    color: var(--gray-900) !important;
    text-align: center !important;
}
.bp-lot__title .bp-title {
    color: var(--brand-primary) !important;
    font-weight: 700 !important;
}
.bp-lot__image { background-color: var(--gray-50) !important; }

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