/*
Theme Name: Webbiverse Mockup Studio
Theme URI: https://heltebrake.webbiverse.com
Author: Webbiverse
Author URI: https://webbiverse.com
Description: Zero-bloat SPA theme for the Heltebrake Art Mockup Studio — dark cinematic design with warm orange accents.
Version: 1.0.3
License: GPLv2 or later
Text Domain: webbiverse-mockup-theme
*/

/* ── CSS Custom Properties ─────────────────────────────────────── */
:root {
    --mk-bg:          #0a0a1a;
    --mk-surface:     rgba(255, 255, 255, 0.04);
    --mk-glass:       rgba(255, 255, 255, 0.06);
    --mk-border:      rgba(255, 255, 255, 0.10);
    --mk-text:        #ffffff;
    --mk-muted:       rgba(255, 255, 255, 0.60);
    --mk-accent:      #e65616;
    --mk-accent-soft: rgba(230, 86, 22, 0.15);
    --mk-accent-hover:#ff7b3a;
    --mk-navy:        #021c40;
    --mk-surface-alt: #1a1a2e;
    --mk-radius:      12px;
    --mk-radius-sm:   8px;
    --mk-shadow:      0 8px 32px rgba(0, 0, 0, 0.5);
    --mk-glass-blur:  20px;
    --mk-max-width:   1400px;
    --mk-font:        'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--mk-font);
    background: var(--mk-bg);
    color: var(--mk-text);
    min-height: 100vh;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── SPA Root ──────────────────────────────────────────────────── */
#root {
    min-height: 100vh;
}

/* ── Gallery Page Layout ───────────────────────────────────────── */
.mk-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--mk-navy) 0%, var(--mk-bg) 35%);
}

.mk-container {
    width: 100%;
    max-width: var(--mk-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ────────────────────────────────────────────────────── */
.mk-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--mk-border);
}

.mk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--mk-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mk-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mk-logo-accent {
    color: var(--mk-accent);
}

.mk-nav {
    display: flex;
    gap: 0.5rem;
}

.mk-nav-link {
    padding: 0.5rem 1rem;
    border-radius: var(--mk-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mk-muted);
    transition: all 0.2s ease;
}

.mk-nav-link:hover {
    color: var(--mk-text);
    background: var(--mk-glass);
}

.mk-nav-link--active {
    color: var(--mk-accent);
    background: var(--mk-accent-soft);
}

/* ── Cards ─────────────────────────────────────────────────────── */
.mk-card {
    background: var(--mk-glass);
    backdrop-filter: blur(var(--mk-glass-blur));
    -webkit-backdrop-filter: blur(var(--mk-glass-blur));
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mk-card:hover {
    border-color: var(--mk-accent);
    transform: translateY(-2px);
    box-shadow: var(--mk-shadow), 0 0 24px var(--mk-accent-soft);
}

.mk-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.mk-card-body {
    padding: 1rem;
}

.mk-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mk-card-meta {
    font-size: 0.8125rem;
    color: var(--mk-muted);
}

/* ── Render Grid ───────────────────────────────────────────────── */
.mk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 2rem 0;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.mk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--mk-radius-sm);
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mk-btn--primary {
    background: var(--mk-accent);
    color: #fff;
}

.mk-btn--primary:hover {
    background: var(--mk-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--mk-accent-soft);
}

.mk-btn--outline {
    background: transparent;
    color: var(--mk-text);
    border: 1px solid var(--mk-border);
}

.mk-btn--outline:hover {
    border-color: var(--mk-accent);
    color: var(--mk-accent);
}

/* ── Tier Badges ───────────────────────────────────────────────── */
.mk-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mk-badge--free {
    background: var(--mk-glass);
    color: var(--mk-muted);
    border: 1px solid var(--mk-border);
}

.mk-badge--pro {
    background: var(--mk-accent-soft);
    color: var(--mk-accent);
    border: 1px solid var(--mk-accent);
}

/* ── Usage Meter ───────────────────────────────────────────────── */
.mk-meter {
    width: 100%;
    height: 6px;
    background: var(--mk-surface);
    border-radius: 3px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.mk-meter-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--mk-accent), var(--mk-accent-hover));
    transition: width 0.4s ease;
}

/* ── Footer ────────────────────────────────────────────────────── */
.mk-footer {
    margin-top: auto;
    padding: 2rem 0;
    border-top: 1px solid var(--mk-border);
    text-align: center;
    font-size: 0.75rem;
    color: var(--mk-muted);
}

.mk-footer a {
    color: var(--mk-accent);
    text-decoration: none;
}

.mk-footer a:hover {
    text-decoration: underline;
}

/* ── 404 Page ──────────────────────────────────────────────────── */
.mk-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: var(--mk-bg);
    text-align: center;
}

.mk-404-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--mk-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px var(--mk-accent-soft);
}

.mk-404-message {
    font-size: 1.125rem;
    color: var(--mk-muted);
    margin-bottom: 2rem;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .mk-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .mk-header-inner {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .mk-grid {
        grid-template-columns: 1fr;
    }

    .mk-404-code {
        font-size: 4rem;
    }
}

/* ── Animation ─────────────────────────────────────────────────── */
@keyframes mk-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mk-card {
    opacity: 0;
    animation: mk-fade-in 0.4s ease-out forwards;
}

.mk-card:nth-child(1)  { animation-delay: 0.05s; }
.mk-card:nth-child(2)  { animation-delay: 0.10s; }
.mk-card:nth-child(3)  { animation-delay: 0.15s; }
.mk-card:nth-child(4)  { animation-delay: 0.20s; }
.mk-card:nth-child(5)  { animation-delay: 0.25s; }
.mk-card:nth-child(6)  { animation-delay: 0.30s; }
.mk-card:nth-child(7)  { animation-delay: 0.35s; }
.mk-card:nth-child(8)  { animation-delay: 0.40s; }
.mk-card:nth-child(9)  { animation-delay: 0.45s; }
.mk-card:nth-child(10) { animation-delay: 0.50s; }
.mk-card:nth-child(11) { animation-delay: 0.55s; }
.mk-card:nth-child(12) { animation-delay: 0.60s; }

/* ── Loading Spinner ───────────────────────────────────────────── */
@keyframes mk-spin {
    to { transform: rotate(360deg); }
}

.mk-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--mk-border);
    border-top-color: var(--mk-accent);
    border-radius: 50%;
    animation: mk-spin 0.8s linear infinite;
    margin: 3rem auto;
}
