/* Styleguide-specific layout styles */
/* This file contains ONLY styles needed for the styleguide.html layout */
/* All component styles should be in main.css */

/* Styleguide Layout */
.styleguide-section {
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 0; /* override global section margin from main.css */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* keep the very first section comfortable at the top */
.styleguide-section:first-of-type {
    padding-top: 2rem;
}

/* remove trailing margin from the last piece of content in a section */
.styleguide-section .component-wrapper:last-child > *:last-child {
    margin-bottom: 0 !important;
}

/* tighten space before divider by reducing the last block's margin */
.styleguide-section .component-wrapper:last-child {
    margin-bottom: 1rem; /* re-introduce a little breathing room */
}

/* Styleguide Labels and Titles */
.styleguide-label {
    font-size: 0.75rem;
    color: hsl(var(--brand-accent));
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.styleguide-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    margin-top: 0;
    line-height: 1.2;
}

.component-wrapper {
    margin-bottom: 4rem;
}

.component-label {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: hsl(var(--brand-alt));
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.variant-label {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 0.75rem;
    font-style: italic;
}

/* Styleguide Demo Components */
.styleguide-footer-demo {
    background: hsl(var(--brand-surface));
    border: 1px solid rgba(21, 30, 44, 0.55);
    box-shadow: 0 20px 60px rgba(10, 16, 10, 0.35);
}

.styleguide-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.styleguide-footer-icon:hover {
    background: rgba(68, 144, 252, 0.28);
    border-color: rgba(68, 144, 252, 0.45);
    transform: translateY(-2px);
}

.styleguide-surface-card {
    background: hsl(var(--brand-surface));
    border-radius: 1.75rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 54px rgba(10, 16, 10, 0.4);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.styleguide-surface-card:hover {
    transform: translateY(-8px);
    border-color: rgba(68, 144, 252, 0.45);
    box-shadow: 0 26px 70px rgba(68, 144, 252, 0.28);
}

.styleguide-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.75rem;
}

.styleguide-icon-tile {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.styleguide-icon-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(68, 144, 252, 0.45);
    box-shadow: 0 20px 45px rgba(68, 144, 252, 0.25);
}

.styleguide-icon-swatch {
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.styleguide-icon-swatch svg {
    width: 2.5rem;
    height: 2.5rem;
}

.styleguide-icon-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.styleguide-icon-code {
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem 0.6rem;
    border-radius: 0.5rem;
}
