/* ============================================================
   Ryan Colegrove — ryancolegrove.com
   Style Sheet
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:           #0f1117;
    --bg-card:      #181c27;
    --bg-card-2:    #1e2333;
    --accent:       #4f8ef7;
    --accent-hover: #6aa3ff;
    --accent-light: rgba(79, 142, 247, 0.12);
    --success:      #34d399;
    --warning:      #fbbf24;
    --danger:       #f87171;
    --text:         #f0f2f8;
    --text-muted:   #8b92a5;
    --text-dim:     #5a6070;
    --border:       rgba(255,255,255,0.07);
    --border-hover: rgba(79,142,247,0.4);
    --radius:       12px;
    --radius-sm:    8px;
    --shadow:       0 4px 24px rgba(0,0,0,0.5);
    --shadow-card:  0 2px 12px rgba(0,0,0,0.4);
    --font:         'Inter', system-ui, -apple-system, sans-serif;
    --transition:   0.2s ease;
    --nav-height:   64px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p  { color: var(--text-muted); line-height: 1.75; }

/* --- Utility ---------------------------------------------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--accent); }
.hidden { display: none !important; }
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.tag-category  { background: var(--accent-light); color: var(--accent); }
.tag-available { background: rgba(52,211,153,0.12); color: var(--success); }
.tag-sold      { background: rgba(248,113,113,0.12); color: var(--danger); }

/* --- Buttons ---------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,142,247,0.4);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    color: var(--text);
    border-color: var(--text-muted);
    background: rgba(255,255,255,0.04);
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* --- Navigation ------------------------------------------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(15,17,23,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--accent); }
.nav-cta { margin-left: 8px; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Page wrapper ----------------------------------------- */
.page-wrap { padding-top: var(--nav-height); }

/* ============================================================
   HOME PAGE (index.html)
   ============================================================ */

/* Hero */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(79,142,247,0.12) 0%, transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 60px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    background: var(--accent-light);
    border: 1px solid rgba(79,142,247,0.2);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-badge-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
.hero h1 { margin-bottom: 20px; letter-spacing: -0.02em; }
.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-photo-wrap {
    position: relative;
    flex-shrink: 0;
}
.hero-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: 0 0 0 8px rgba(79,142,247,0.08), var(--shadow);
}
.hero-photo-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--bg-card-2);
    border: 3px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.8rem;
}
.hero-photo-placeholder i { font-size: 3rem; color: var(--text-dim); }

/* Stats strip */
.stats-strip {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* About section */
.about-section { padding: 100px 0; }
.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.8;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.about-photo {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    aspect-ratio: 4/5;
    object-fit: cover;
}
.about-photo-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--bg-card-2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.about-photo-placeholder i { font-size: 3.5rem; }
.about-content { display: flex; flex-direction: column; gap: 24px; }
.about-content h2 { margin-bottom: 8px; }
.about-content p { font-size: 0.98rem; line-height: 1.85; }

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}
.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    transition: border-color var(--transition);
}
.highlight-card:hover { border-color: var(--border-hover); }
.highlight-icon { font-size: 1.6rem; margin-bottom: 8px; }
.highlight-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.highlight-card p { font-size: 0.82rem; }

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}
.social-link:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--accent-light);
}
.social-link i { font-size: 1.1rem; }

/* Featured products preview */
.featured-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(79,142,247,0.03) 100%);
}
.featured-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}
.products-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* ============================================================
   SHOP PAGE (shop.html)
   ============================================================ */

.shop-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
}
.shop-header h1 { margin-bottom: 8px; }
.shop-header p { max-width: 500px; }

.shop-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 0;
}
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    flex: 1;
    min-width: 200px;
    transition: border-color var(--transition);
}
.search-box:focus-within { border-color: var(--accent); }
.search-box i { color: var(--text-dim); font-size: 1.1rem; flex-shrink: 0; }
.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.9rem;
    width: 100%;
}
.search-box input::placeholder { color: var(--text-dim); }

.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 8px 16px;
    border-radius: 99px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--border-hover); color: var(--text); }
.filter-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.availability-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all var(--transition);
    user-select: none;
}
.availability-toggle:hover { border-color: var(--border-hover); color: var(--text); }
.availability-toggle input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; }

.shop-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.shop-count { font-size: 0.85rem; color: var(--text-muted); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 80px;
}

/* --- Product Card ----------------------------------------- */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
}
.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.product-card.sold-out { opacity: 0.6; }

.card-image-wrap {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--bg-card-2);
    overflow: hidden;
}
.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .card-image-wrap img { transform: scale(1.04); }
.card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 3rem;
}
.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.card-category { margin-bottom: 2px; }
.card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.card-details {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.card-detail-pill {
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px solid var(--border);
}
.card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-top: auto;
    padding-top: 8px;
}

.card-footer {
    padding: 0 16px 16px;
}
.card-buy-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.card-buy-btn:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 16px rgba(79,142,247,0.4);
}
.card-buy-btn.disabled {
    background: var(--bg-card-2);
    color: var(--text-dim);
    cursor: not-allowed;
    pointer-events: none;
}

/* Empty state */
.shop-empty {
    text-align: center;
    padding: 100px 24px;
    grid-column: 1 / -1;
}
.shop-empty i { font-size: 3.5rem; color: var(--text-dim); margin-bottom: 16px; display: block; }
.shop-empty h3 { color: var(--text-muted); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    text-align: center;
}
.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.footer-brand span { color: var(--accent); }
.footer p { font-size: 0.85rem; margin-bottom: 24px; }
.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-copy { font-size: 0.78rem; color: var(--text-dim); }

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-2) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.skeleton-img { aspect-ratio: 4/3; }
.skeleton-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 14px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-80 { width: 80%; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--text);
    box-shadow: var(--shadow);
    animation: slideIn 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 320px;
}
.toast.success { border-color: rgba(52,211,153,0.3); }
.toast.error { border-color: rgba(248,113,113,0.3); }
.toast i { font-size: 1.1rem; flex-shrink: 0; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-actions { justify-content: center; }
    .hero-photo-wrap { order: -1; }
    .hero-photo, .hero-photo-placeholder { width: 220px; height: 220px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-photo, .about-photo-placeholder { max-width: 400px; }
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .products-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .about-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: rgba(15,17,23,0.98);
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }
    .nav-links.open .nav-cta { display: block; margin-left: 0; margin-top: 8px; }
    .hero { padding: 48px 0 40px; }
    .products-preview-grid { grid-template-columns: 1fr; }
    .featured-header { flex-direction: column; align-items: flex-start; }
    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .filter-tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
}

/* ============================================================
   VARIANT SELECTORS (color / size pills on product cards)
   ============================================================ */

.variant-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.variant-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.variant-pill {
    padding: 5px 12px;
    border-radius: 99px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    white-space: nowrap;
}
.variant-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* Selected pill */
.variant-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Sold out in this combo — show but crossed out */
.variant-pill.pill-unavail {
    opacity: 0.4;
    text-decoration: line-through;
    cursor: default;
    pointer-events: none;
}

/* Combination literally doesn't exist — hide entirely */
.variant-pill.pill-missing {
    display: none;
}

/* Buy area beneath the selectors */
.variant-buy-area {
    min-height: 42px;
    display: flex;
    align-items: center;
}

/* Hint text shown before selection is complete */
.variant-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
}
