/*
 * Case Study — single-producer_project.php
 * Aktor Theme · Unicorn Factory style
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ── Reset / base ──────────────────────────────────────────────────────────── */
.cs-page { background: #f8f9fb; min-height: 100vh; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.cs-hero { width: 100%; background: #0d0f14; overflow: hidden; }

/* Embed (YouTube / SoundCloud etc.) */
.cs-hero__embed-wrap {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}
.cs-hero__embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.cs-hero__embed iframe,
.cs-hero__embed embed,
.cs-hero__embed object,
.cs-hero__embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Featured image */
.cs-hero__image {
    min-height: 480px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.cs-hero__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,15,20,.35) 0%,
        rgba(13,15,20,.7)  100%
    );
}

/* Placeholder when no image / embed */
.cs-hero__placeholder {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.18);
    font-size: 4rem;
}

/* ── Content layout ──────────────────────────────────────────────────────── */
.cs-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
    padding: 48px 0 80px;
}

/* ── Main article ────────────────────────────────────────────────────────── */
.cs-main { min-width: 0; }

/* Breadcrumb */
.cs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: #8892a4;
    margin-bottom: 20px;
}
.cs-breadcrumb__link {
    color: #6c63ff;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.cs-breadcrumb__link:hover { color: #5a52e0; text-decoration: underline; }
.cs-breadcrumb__sep { color: #c1c7d0; font-size: .8rem; }
.cs-breadcrumb__current { color: #3d4557; font-weight: 500; }

/* Category pills */
.cs-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cs-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(108,99,255,.1);
    color: #6c63ff;
    border: 1px solid rgba(108,99,255,.25);
}

/* Title */
.cs-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #1a1f2e;
    line-height: 1.22;
    margin: 0 0 12px;
}

/* Tagline */
.cs-tagline {
    font-size: 1.1rem;
    color: #5c6578;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Meta row */
.cs-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #eaecf2;
    border-bottom: 1px solid #eaecf2;
    margin-bottom: 32px;
}
.cs-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: #5c6578;
}
.cs-meta-item i {
    color: #6c63ff;
    font-size: .8rem;
    flex-shrink: 0;
}

/* Body content */
.cs-body.entry-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #3d4557;
}
.cs-body.entry-content p { margin-bottom: 1.2em; }
.cs-body.entry-content h2,
.cs-body.entry-content h3 {
    color: #1a1f2e;
    font-weight: 700;
    margin: 1.8em 0 .6em;
}
.cs-body.entry-content h2 { font-size: 1.5rem; }
.cs-body.entry-content h3 { font-size: 1.2rem; }
.cs-body.entry-content ul,
.cs-body.entry-content ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.cs-body.entry-content li { margin-bottom: .4em; }
.cs-body.entry-content blockquote {
    border-left: 4px solid #6c63ff;
    margin: 1.5em 0;
    padding: .8em 1.2em;
    background: rgba(108,99,255,.05);
    border-radius: 0 8px 8px 0;
    color: #5c6578;
    font-style: italic;
}
.cs-body.entry-content img {
    max-width: 100%;
    border-radius: 10px;
    height: auto;
}

/* Live project CTA */
.cs-cta-row { margin-top: 36px; }
.cs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    background: linear-gradient(135deg, #6c63ff 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(108,99,255,.35);
}
.cs-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(108,99,255,.45);
    color: #fff;
    text-decoration: none;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.cs-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Producer card */
.cs-producer-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 20px rgba(26,31,46,.07);
    border: 1px solid #eaecf2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

/* Avatar */
.cs-producer-card__avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f1f8;
    margin-bottom: 12px;
    display: block;
}
.cs-producer-card__avatar--placeholder {
    background: #f0f1f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c1c7d0;
    font-size: 2rem;
    margin-bottom: 12px;
}

/* Tier badge */
.cs-producer-card__tier {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 10px;
}
.cs-producer-card__tier--gold    { background: rgba(255,193,7,.12);  color: #d4a017; border: 1px solid rgba(255,193,7,.3); }
.cs-producer-card__tier--silver  { background: rgba(148,163,184,.12); color: #64748b; border: 1px solid rgba(148,163,184,.3); }
.cs-producer-card__tier--bronze  { background: rgba(180,120,60,.12);  color: #a06030; border: 1px solid rgba(180,120,60,.3); }

/* Name */
.cs-producer-card__name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1f2e;
    margin: 0 0 6px;
    line-height: 1.25;
}

/* Tagline */
.cs-producer-card__tagline {
    font-size: .85rem;
    color: #8892a4;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Meta items (location, availability) */
.cs-producer-card__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    width: 100%;
}
.cs-producer-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: #5c6578;
}
.cs-producer-card__meta-item i { color: #6c63ff; font-size: .75rem; }

/* Availability */
.cs-producer-card__avail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.cs-producer-card__avail--available {
    background: rgba(16,185,129,.1);
    color: #059669;
    border: 1px solid rgba(16,185,129,.25);
}
.cs-producer-card__avail--busy {
    background: rgba(245,158,11,.1);
    color: #d97706;
    border: 1px solid rgba(245,158,11,.25);
}
.cs-avail-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    flex-shrink: 0;
}

/* Buttons */
.cs-producer-card__btn {
    width: 100%;
    text-align: center;
    padding: 11px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    background: linear-gradient(135deg, #6c63ff, #8b5cf6);
    color: #fff;
    display: block;
    transition: transform .2s, box-shadow .2s;
    margin-bottom: 10px;
}
.cs-producer-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(108,99,255,.38);
    color: #fff;
    text-decoration: none;
}
.cs-producer-card__msg-btn {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    background: transparent;
    color: #6c63ff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1.5px solid rgba(108,99,255,.4);
    transition: border-color .2s, background .2s, color .2s;
}
.cs-producer-card__msg-btn:hover {
    background: rgba(108,99,255,.06);
    border-color: #6c63ff;
    color: #6c63ff;
    text-decoration: none;
}

/* Sidebar block (services) */
.cs-sidebar-block {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 2px 20px rgba(26,31,46,.07);
    border: 1px solid #eaecf2;
}
.cs-sidebar-block__title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #8892a4;
    margin: 0 0 14px;
}

/* Skill tags in sidebar */
.cs-sidebar-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-sidebar-skill {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    color: #6c63ff;
    background: rgba(108,99,255,.08);
    border: 1px solid rgba(108,99,255,.2);
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.cs-sidebar-skill:hover {
    background: #6c63ff;
    color: #fff;
    border-color: #6c63ff;
    text-decoration: none;
}

/* ── Related projects ────────────────────────────────────────────────────── */
.cs-related {
    background: #fff;
    border-top: 1px solid #eaecf2;
    padding: 64px 0 80px;
    margin-top: 20px;
}
.cs-related__title {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #1a1f2e;
    margin: 0 0 36px;
}

/* Related grid */
.cs-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

/* Related card */
.cs-related-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eaecf2;
    box-shadow: 0 2px 12px rgba(26,31,46,.06);
    transition: transform .2s, box-shadow .2s;
}
.cs-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(26,31,46,.12);
}

/* Thumb */
.cs-related-card__thumb-link { display: block; }
.cs-related-card__thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.cs-related-card__thumb--empty {
    background: #0d0f14;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.2);
    font-size: 2.5rem;
    height: 180px;
}
.cs-related-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(108,99,255,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
    color: #fff;
    font-size: 1.4rem;
}
.cs-related-card:hover .cs-related-card__overlay { opacity: 1; }

/* Card body */
.cs-related-card__body { padding: 18px 18px 20px; }
.cs-related-card__cat {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6c63ff;
    background: rgba(108,99,255,.08);
    padding: 2px 9px;
    border-radius: 10px;
    margin-bottom: 8px;
}
.cs-related-card__title {
    font-size: .97rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}
.cs-related-card__title a {
    color: #1a1f2e;
    text-decoration: none;
    transition: color .2s;
}
.cs-related-card__title a:hover { color: #6c63ff; }
.cs-related-card__tagline {
    font-size: .82rem;
    color: #8892a4;
    line-height: 1.5;
    margin: 0;
}

/* View All */
.cs-related__view-all { text-align: center; }
.cs-related__view-all .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .93rem;
    text-decoration: none;
    color: #6c63ff;
    border: 1.5px solid rgba(108,99,255,.4);
    background: transparent;
    transition: all .2s;
}
.cs-related__view-all .btn-outline:hover {
    background: rgba(108,99,255,.06);
    border-color: #6c63ff;
    text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cs-layout { grid-template-columns: 1fr 300px; gap: 32px; }
}

@media (max-width: 820px) {
    .cs-layout {
        grid-template-columns: 1fr;
        padding: 36px 0 60px;
    }
    .cs-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
    .cs-hero__image { min-height: 320px; }
    .cs-related__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .cs-hero__embed-wrap { padding: 32px 16px; }
    .cs-hero__image { min-height: 240px; }
    .cs-layout { gap: 24px; padding: 28px 0 48px; }
    .cs-sidebar { grid-template-columns: 1fr; }
    .cs-meta-row { gap: 4px 14px; }
    .cs-related { padding: 40px 0 60px; }
    .cs-related__grid { grid-template-columns: 1fr; }
    .cs-producer-card { padding: 22px 18px; }
    .cs-sidebar-block { padding: 18px 16px; }
}
