/* Guides - Public Styles */

/* ---- Hero ---- */
.guides-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4a1c82 0%, #6a2ba8 55%, #3a1566 100%);
    color: white;
    /* Top padding clears the fixed nav (~70px) plus the promo/delivery bar
       that sits above it, so the heading never tucks under the header. */
    padding: calc(var(--nav-height, 70px) + 85px) 20px 60px;
    text-align: center;
}
/* Animated pink/purple plasma glow, matching the customer login screen. */
.guides-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 38, 158, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(146, 78, 255, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 38, 158, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 90% 30%, rgba(146, 78, 255, 0.5) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: plasmaMove 15s ease-in-out infinite;
    z-index: 0;
}
@keyframes plasmaMove {
    0%, 100% { background-position: 0% 0%, 100% 100%, 0% 100%, 100% 0%; }
    25%      { background-position: 50% 50%, 50% 50%, 100% 0%, 0% 100%; }
    50%      { background-position: 100% 100%, 0% 0%, 50% 50%, 50% 50%; }
    75%      { background-position: 50% 50%, 50% 50%, 0% 100%, 100% 0%; }
}
@media (prefers-reduced-motion: reduce) {
    .guides-hero::before { animation: none; }
}
.guides-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.guides-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}
.guides-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.6;
}

/* ---- Listing ---- */
.guides-listing {
    padding: 50px 20px 80px;
}
.guides-container {
    max-width: 1100px;
    margin: 0 auto;
}
.guides-category-section {
    margin-bottom: 50px;
}
.guides-category-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: #222;
}
/* ---- Filter pills ---- */
.guides-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}
.guides-filter {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid #e5d6ec;
    background: #fff;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}
.guides-filter:hover {
    border-color: #924EFF;
    color: #924EFF;
}
.guides-filter.active {
    background: linear-gradient(135deg, #FF269E 0%, #924EFF 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(146, 78, 255, 0.25);
}
/* Category chip on each card */
.guide-card-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #924EFF;
    background: #f6eefe;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.guide-card {
    display: block;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.guide-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.guide-card-body {
    padding: 20px;
}
.guide-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: #222;
}
.guide-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}
.guides-empty {
    text-align: center;
    padding: 64px 28px;
    max-width: 560px;
    margin: 48px auto;
    background: linear-gradient(180deg, #ffffff 0%, #fdf4fb 100%);
    border: 1px solid #f2e2f4;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(146, 78, 255, 0.08);
}
.guides-empty-badge {
    width: 74px;
    height: 74px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF269E 0%, #924EFF 100%);
    box-shadow: 0 10px 24px rgba(255, 38, 158, 0.28);
}
.guides-empty-badge svg {
    width: 36px;
    height: 36px;
}
.guides-empty h2 {
    font-size: 26px;
    margin: 0 0 10px;
    border: none;
    background: linear-gradient(135deg, #FF269E 0%, #924EFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #924EFF;
}
.guides-empty p {
    color: #6b6b70;
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}

/* ---- Article Detail ---- */
.guide-article {
    /* Top padding clears the fixed site header (var --nav-height, ~70px). */
    padding: calc(var(--nav-height, 70px) + 24px) 20px 80px;
}
.guide-container {
    max-width: 800px;
    margin: 0 auto;
}
.guide-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin-bottom: 25px;
    color: #888;
}
/* Override the global `nav a` rule (display:flex + padding + underline)
   that would otherwise stack the breadcrumb vertically. */
.guide-breadcrumb a {
    display: inline;
    padding: 0;
    color: #666;
    text-decoration: none;
}
.guide-breadcrumb a::after {
    display: none;
}
.guide-breadcrumb a:hover {
    color: var(--brand-pink, #ff269e);
}
.guide-breadcrumb span {
    margin: 0;
}
.guide-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.2;
}
.guide-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}
.guide-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Content Blocks ---- */
.guide-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
}
.guide-content h2 {
    font-size: 1.6rem;
    margin: 40px 0 15px;
    color: #1a1a1a;
}
.guide-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 12px;
    color: #222;
}
.guide-content h4 {
    font-size: 1.1rem;
    margin: 25px 0 10px;
    color: #333;
}
.guide-text {
    margin-bottom: 20px;
}
.guide-text p {
    margin-bottom: 15px;
}
.guide-text ul, .guide-text ol {
    margin-bottom: 15px;
    padding-left: 25px;
}
.guide-text li {
    margin-bottom: 6px;
}
.guide-text a {
    color: var(--brand-pink, #ff269e);
    text-decoration: underline;
}

/* Image blocks */
.guide-image {
    margin: 25px 0;
}
.guide-image img {
    border-radius: 6px;
    height: auto;
}
.guide-image-centre {
    text-align: center;
}
.guide-image-centre img {
    max-width: 100%;
}
.guide-image-full-width img {
    width: 100%;
}
.guide-image-left {
    float: left;
    margin: 0 25px 15px 0;
    max-width: 50%;
}
.guide-image-right {
    float: right;
    margin: 0 0 15px 25px;
    max-width: 50%;
}
.guide-image-left img,
.guide-image-right img {
    max-width: 100%;
}
.guide-image figcaption {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
    font-style: italic;
    text-align: center;
}

/* Callout blocks */
.guide-callout {
    padding: 16px 20px;
    border-radius: 6px;
    margin: 25px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}
.guide-callout-tip {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}
.guide-callout-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}
.guide-callout-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}
.guide-callout-example {
    background: #e2e3e5;
    border-left: 4px solid #6c757d;
    color: #383d41;
}

/* FAQ accordion blocks */
.guide-faq {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 15px 0;
    overflow: hidden;
}
.guide-faq summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    background: #f8f9fa;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}
.guide-faq summary:hover {
    background: #e9ecef;
}
.guide-faq summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 700;
    color: #888;
    transition: transform 0.2s;
}
.guide-faq[open] summary::after {
    content: '-';
}
.guide-faq summary::-webkit-details-marker {
    display: none;
}
.guide-faq-answer {
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
}

/* Divider */
.guide-divider {
    border: none;
    border-top: 2px solid #eee;
    margin: 35px 0;
}

/* Related guides */
.guide-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}
.guide-related h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #222;
}
.guide-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.guide-related .guide-card-body {
    padding: 15px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .guides-hero { padding: calc(var(--nav-height, 70px) + 24px) 20px 40px; }
    .guides-hero h1 { font-size: 1.8rem; }
    .guides-hero p { font-size: 1rem; }

    .guides-grid { grid-template-columns: 1fr; }

    .guide-title { font-size: 1.6rem; }
    .guide-content h2 { font-size: 1.3rem; }
    .guide-content h3 { font-size: 1.1rem; }

    .guide-image-left,
    .guide-image-right {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }

    .guide-related-grid {
        grid-template-columns: 1fr;
    }
}

/* When the site notification bar is visible it adds ~40px above the header,
   so push the guides content down further to clear both. */
body.has-notification .guides-hero { padding-top: calc(var(--nav-height, 70px) + 80px); }
body.has-notification .guide-article { padding-top: calc(var(--nav-height, 70px) + 64px); }
@media (max-width: 768px) {
    body.has-notification .guides-hero { padding-top: calc(var(--nav-height, 70px) + 64px); }
}
