/* base/static/base/css/custom.css */

/* 1. The Ingredient Hover Effect */
.ingredient-card {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: 1px solid #dee2e6;
}

.ingredient-card:hover {
    transform: scale(1.03); /* Subtle zoom */
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #d4af37; /* A subtle gold highlight on hover */
}

/* 2. Brand Colours (UK Spelling) */
:root {
    --pesky-gold: #d4af37; /* Classic Ale Gold */
    --pesky-dark: #212529; /* Charcoal/Stout Black */
    --pesky-copper: #b87333; /* Bitter/Copper */
}

/* 3. Custom Button Styling */
/* Overrides Bootstrap primary to match your brewery */
.btn-primary {
    background-color: var(--pesky-dark);
    border-color: var(--pesky-dark);
}

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

/* 4. Typography Adjustments */
h1, h2, h3 {
    letter-spacing: -1px; /* Modern, tighter heading look */
}

.text-uppercase-spaced {
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Customizing the Pill Buttons */
.nav-pills .nav-link {
    color: var(--pesky-dark);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 8px 20px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Accentuated state (Active/Clicked) */
.nav-pills .nav-link.active, 
.nav-pills .show > .nav-link {
    background-color: var(--pesky-dark) !important;
    color: var(--pesky-gold) !important;
    border-radius: 50px; /* Makes them true "pills" */
}

/* Hover state for non-active links */
.nav-pills .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: var(--pesky-gold);
    color: var(--pesky-dark);
    border-radius: 50px;
}

/* Ensure the logo stays sharp and centered */
.navbar-brand img {
    display: block;
    width: auto;
}

/* Adjust logo size for mobile */
@media (max-width: 991px) {
    .navbar-brand img {
        height: 40px;
    }
}

/* Optional: Slight grow effect when hovering the logo */
.navbar-brand-centered:hover img {
    transform: scale(1.05);
}

/* Footer Styles */
footer p {
    margin-bottom: 0.5rem;
}

.bluesky-icon {
    /* Turns the blue logo into a subdued grey to match the 'text-muted' look */
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.bluesky-link:hover .bluesky-icon {
    /* Returns the logo to its natural blue and full visibility */
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.bluesky-link:hover .text-muted {
    /* Optional: turns the 'Bluesky' text blue as well */
    color: #0560ff !important; 
}

/* Make sure the footer stays at the bottom on short pages */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    margin-top: auto;
}

/* For the 'brews' page...
/* Custom Brew Table Styling */
.custom-brew-table {
    border-collapse: separate;
    border-spacing: 0 10px; /* Creates a 'card' look for each row */
}

.custom-brew-table tbody tr {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

.custom-brew-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #fff !important; /* Prevents Bootstrap's grey hover */
}

/* Remove Hyperlink Underlines */
.custom-brew-table a, 
.custom-brew-table a:visited {
    text-decoration: none !important;
    color: inherit;
}

/* ABV Progress Bar Styling */
.progress-bar {
    background-color: var(--pesky-gold) !important;
}

/* Table Header Style */
.custom-brew-table thead th {
    background-color: var(--pesky-dark);
    border: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 15px;
}

.custom-brew-table td {
    padding: 20px 15px;
    border: none;
}

/* For the Brew Details Page */
/* Recipe Paper Card */
.recipe-paper-card {
    border-radius: 2px;
    position: relative;
    /* Subtle paper texture effect */
    background-image: linear-gradient(rgba(255,255,255,.5) 50%, transparent 50%),
                      linear-gradient(90deg, rgba(255,255,255,.5) 50%, transparent 50%);
    background-size: 4px 4px;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pesky-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.ingredient-type {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
    color: var(--pesky-copper);
}

/* Serif font for the 'Story' to give a crafted feel */
.text-serif {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #444;
}

/* BJCP Link - Subtle & No Underline */
.bjcp-link {
    color: var(--pesky-copper);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.bjcp-link:hover {
    color: var(--pesky-dark);
    text-decoration: underline;
}

/* Remove underlines from all sidebar data */
.list-unstyled li {
    color: #555;
    font-family: 'Courier New', Courier, monospace; /* Optional: adds a technical log feel */
}

/* Glass Container */
.glass-container {
    position: relative;
    width: 40px;
    height: 60px;
    background: #f0f0f0; /* The empty part of the glass */
    border-radius: 2px 2px 8px 8px;
    overflow: hidden;
}

/* The Beer Fill */
.beer-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 85%; /* Filled to 85% for a realistic 'head' space */
    transition: background-color 0.5s ease;
}

/* The Head of the Beer (The Foam) */
.beer-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.8); /* Frothy white top */
}

/* The Glass Shape (Nonic Style Bulge) */
/* Container for the pint glass */
.nonic-glass {
    position: relative;
    width: 48px;
    height: 75px;
    margin: 0 auto;
    background: #ffffff;
    /* The distinctive Nonic 'bulge' created via border-radius and width tweaks */
    border: 2px solid var(--pesky-dark); 
    border-top: 1px solid #ddd; /* Lighter top to suggest the rim */
    border-bottom-left-radius: 8px 15px;
    border-bottom-right-radius: 8px 15px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    overflow: hidden;
    box-shadow: 1px 1px 0px rgba(0,0,0,0.05); /* Very subtle paper shadow */
}

/* The Nonic 'Shoulder' - This adds the physical bulge outline */
.nonic-glass::before {
    content: "";
    position: absolute;
    top: 20%;
    left: -5%;
    width: 110%;
    height: 15%;
    border-top: 2px solid var(--pesky-dark);
    border-bottom: 2px solid var(--pesky-dark);
    background: inherit;
    z-index: 2;
    display: none; /* Keep it simple first, or use clip-path for a cleaner curve below */
}

/* Refined Silhouette using a more robust Clip-Path */
.nonic-glass {
    clip-path: polygon(5% 0%, 95% 0%, 100% 15%, 90% 25%, 85% 100%, 15% 100%, 10% 25%, 0% 15%);
    background: #fff;
    border: 2px solid #000; /* Ensuring a bold, clear outline */
}

.beer-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 85%; /* Level of the beer */
    border-top: 4px solid #fff; /* The 'head' of the beer */
    transition: background-color 0.3s ease;
}

.glass-wrapper {
    position: relative;
    width: 60px;  /* Adjust based on your image size */
    height: 100px;
    margin: 0 auto;
    overflow: hidden;
}

.beer-color {
    position: absolute;
    bottom: 5px;   /* Adjust to align with the bottom of the glass in the image */
    left: 5px;     /* Adjust to align with the sides */
    right: 5px;
    top: 20px;     /* Leaves space for the 'head' at the top */
    z-index: 1;    /* Sits behind the outline */
    transition: background-color 0.5s ease;
}

.glass-overlay {
    position: relative;
    z-index: 2;    /* Sits on top of the color */
    width: 100%;
    height: auto;
    display: block;
}

/* Colour Swatch for the Paper Spec Sheet */
.colour-swatch {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 2px; /* Keeps it 'paper-like' and not too rounded */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 10px;
}

.swatch-label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    color: rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.6);
    padding: 2px 6px;
    border-radius: 2px;
}

/* Pipeline CSS */

/* Phase Headers */
.pipeline-group-header {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Individual Status Labels inside groups */
.status-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

/* Cards */
.pipeline-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.small-card {
    border-left: 3px solid #6c757d;
}

.idea-card {
    border: 1px dashed #ced4da;
    background: transparent;
}

/* Cap Indicator */
.cap-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #eee;
    margin-left: 15px;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.2);
}

/* Live Animation */
.status-dot-pulsing {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}


/* The About page */
/* Stat Cards */
.stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.05); /* Paper-style shadow */
}

/* Blockquotes */
.customer-quote {
    padding: 20px;
    background: #fdfdfd;
    border-left: 3px solid var(--pesky-copper);
    font-style: italic;
    margin-bottom: 20px;
}

.customer-quote p {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    color: #444;
}

.customer-quote cite {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    font-style: normal;
    text-transform: uppercase;
    color: #888;
}

/* Ethos Text */
.text-serif {
    font-family: 'Georgia', serif;
    line-height: 1.8;
}