/* Pexels-inspired global style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    color-scheme: light;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
    background: #f8fafc;
    font-size: 16px;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
}

img,
picture,
video,
iframe {
    max-width: 100%;
    display: block;
}

a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #4338ca;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.header-shell,
.page-shell,
.card,
.feed-card,
.metric-card,
.studio-hero,
.sidebar-panel {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    border-radius: 28px;
}

.header-shell {
    width: 100%;
    padding: 18px clamp(20px, 2vw, 32px);
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.page-shell {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(24px, 2.5vw, 40px);
}

.site-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: clamp(24px, 2vw, 36px);
    align-items: start;
}

@media (max-width: 1024px) {
    .site-grid {
        grid-template-columns: 1fr;
    }
}

.site-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.02;
    margin: 0;
}

.site-subtitle,
.section-label {
    color: #475569;
}

.site-subtitle {
    font-size: 1rem;
    margin-top: 0.75rem;
    max-width: 68ch;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.35rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    color: #334155;
    background: rgba(226, 232, 240, 0.6);
    font-weight: 700;
}

.nav-link:hover {
    background: rgba(67, 56, 202, 0.08);
    color: #4338ca;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.1);
}

.card h2,
.card h3,
.card h4 {
    margin: 0 0 0.85rem;
}

.card-body {
    padding: 24px;
}

.card-meta,
.card-caption,
.metric-label {
    color: #64748b;
    font-size: 0.95rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.card-text {
    color: #475569;
    line-height: 1.75;
}

    .pexels-header {
        background: #ffffff;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9);
        padding: 1rem 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .pexels-nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .pexels-logo {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        color: #111827;
        font-weight: 800;
        text-decoration: none;
    }

    .pexels-search {
        flex: 1;
        max-width: 420px;
        margin: 0 1rem;
    }

    .pexels-search input {
        width: 100%;
        border: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 9999px;
        padding: 0.95rem 1.2rem;
        background: #f8fafc;
    }

    .pexels-nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
    }

    .pexels-nav-links a {
        color: #334155;
        padding: 0.85rem 1.1rem;
        border-radius: 9999px;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .pexels-nav-links a:hover {
        background: rgba(67, 56, 202, 0.08);
        color: #4338ca;
    }

    .pexels-title {
        font-size: clamp(2rem, 3vw, 2.4rem);
        font-weight: 900;
        margin: 0 0 1.1rem;
        color: #111827;
    }

    .pexels-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }

    .pexels-card {
        background: #ffffff;
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 28px;
        overflow: hidden;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .pexels-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 26px 60px rgba(15, 23, 42, 0.1);
    }

    .pexels-card-content {
        padding: 24px;
    }

    .pexels-card-title {
        font-size: 1.1rem;
        font-weight: 800;
        margin-bottom: 0.75rem;
        color: #111827;
    }

    .pexels-card-meta,
    .pexels-card-tags,
    .pexels-footer-links a,
    .card-meta,
    .metric-label {
        color: #64748b;
    }

    .pexels-tag {
        display: inline-flex;
        align-items: center;
        background: rgba(226, 232, 240, 0.6);
        color: #334155;
        padding: 0.35rem 0.85rem;
        border-radius: 9999px;
        font-size: 0.8rem;
    }

    .pexels-category {
        display: inline-flex;
        padding: 0.65rem 1rem;
        border-radius: 9999px;
        border: 1px solid rgba(59, 130, 246, 0.25);
        color: #2563eb;
        background: rgba(59, 130, 246, 0.08);
        transition: background 0.2s ease, color 0.2s ease;
    }

    .pexels-category:hover {
        background: rgba(37, 99, 235, 0.12);
        color: #1e40af;
    }

    .pexels-footer {
        background: #ffffff;
        border-top: 1px solid rgba(226, 232, 240, 0.9);
        padding: 2rem 0 1rem;
    }

    .pexels-footer-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .pexels-footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .pexels-footer-links a:hover {
        color: #111827;
    }

.metric-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #111827;
}

.metric-card p {
    margin: 0.65rem 0 0;
}

.section-panel {
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.95rem 1.45rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.button-primary {
    background: #4338ca;
    color: #ffffff;
    border: 1px solid transparent;
}

.button-primary:hover {
    background: #5b4bff;
}

.button-secondary {
    background: rgba(67, 56, 202, 0.08);
    color: #4338ca;
    border: 1px solid rgba(67, 56, 202, 0.12);
}

.button-secondary:hover {
    background: rgba(67, 56, 202, 0.12);
}

input[type="text"],
input[type="search"],
textarea,
select {
    width: 100%;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 14px 18px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(67, 56, 202, 0.35);
    box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.08);
}

@media (max-width: 768px) {
    .page-shell { padding: 20px; }
    .header-shell { padding: 16px 20px; }
    .studio-hero { grid-template-columns: 1fr; }
    .nav-links { justify-content: center; }
}
