/* ============================================================================
   Collaboration Cards - Egyedi kártyatípus a collaborations oldalhoz
   Mintája: portfolio porting-card, de önálló, nem használja a portfolio-card-base-t
   Layout: egy oszlopos, kép bal - szöveg jobb
   ============================================================================ */

/* Was using --spacing-xxl (5rem/80px) on top of the header-height compensation,
   and was missing --cookie-banner-height entirely — every other section on the
   site (sections.css, blog.css, portfolio-specific.css) uses --spacing-lg (2rem)
   + the cookie-banner term. That double-counted gap is what made this page's
   title sit much further from the header than any other page's. */
.collab-cards-section {
    padding: calc(var(--header-actual-height, 105px) + var(--cookie-banner-height, 0px) + var(--spacing-lg)) 0 var(--spacing-lg);
}

.collab-cards-section .container {
    max-width: var(--container-max-width);
    padding-inline: var(--content-inline);
}

.collab-cards-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.collab-cards-header .collab-page-title {
    font-size: clamp(1.8rem, 4vw + 0.5rem, 2.5rem);
    font-weight: 800;
    margin: 0 auto var(--spacing-sm);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.collab-page-icon-inline {
    font-size: 3.2rem;
    line-height: 1;
    -webkit-text-fill-color: initial;
    background: none;
}

.collab-cards-header .collab-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    animation: collabSlideIn 0.6s ease-out;
}

@keyframes collabSlideIn {
    from { width: 0; opacity: 0; }
    to { width: 80px; opacity: 1; }
}

.collab-cards-header .collab-page-lead {
    font-size: clamp(0.95rem, 2vw + 0.3rem, 1.1rem);
    color: var(--text-gray);
    max-width: min(800px, 90vw);
    margin: 0 auto;
    line-height: 1.8;
}

/* Grid: egy oszlop */
.collab-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: min(900px, 100%);
    margin: 0 auto;
}

/* Egyedi kártya - nem portfolio-card-base, önálló */
.collab-card {
    display: flex;
    flex-direction: row;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    min-height: 200px;
}

.collab-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(50, 179, 141, 0.3);
}

/* Kép slot - bal oldal */
.collab-card-media {
    flex-shrink: 0;
    width: 280px;
    min-height: 200px;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.collab-card-media picture {
    display: contents;
}

.collab-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Logo-type media (square brand mark on transparent background, e.g. a
   partner/product logo) needs different treatment than a full-bleed photo:
   contain + padding + the same dark gradient the emoji placeholder uses, so
   the mark reads as a centered badge instead of being cropped edge-to-edge
   by object-fit:cover. */
.collab-card-media-logo {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    padding: var(--spacing-md);
}

.collab-card-media-logo img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* Placeholder amikor még nincs kép */
.collab-card-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    /* Sized to match the visual footprint of the logo images (.collab-card-media-logo
       img, contain-fit inside the same box minus --spacing-md padding) — user
       feedback: the emoji fallback icons looked much smaller than the new logo
       cards, making the grid feel inconsistent. */
    font-size: 6rem;
    opacity: 0.5;
}

/* Content slot - jobb oldal */
.collab-card-content {
    flex: 1;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    min-width: 0;
}

.collab-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    line-height: 1.3;
    text-align: left;
}

.collab-card-title::after {
    display: none !important;
}

.collab-card-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
    flex: 1;
    text-align: left;
}

/* CTA link a leírás alatt — csak akkor jelenik meg, ha a kártya adata
   tartalmaz "link" mezőt (pl. saját/társalapított projekteknél, ahol van
   élő oldal a bemutatásra; a magánügyfeleknek készült, anonimizált
   projekteknél nincs link).
   Design-elv (user visszajelzés + design-critique): a gomb NEM lehet
   ugyanolyan "pill" alakú mint a lenti tag-chipek, mert így egyetlen
   listaként olvasódik be, függetlenül az igazítástól — sem a jobbra, sem a
   középre zárás nem oldotta meg ezt, mert a FORMA-ismétlődés volt a valódi
   ok. Megoldás: (1) --radius-md (enyhén lekerekített téglalap) a tagek
   --radius-full pill-jével szemben, (2) balra zárva — a bekezdés természetes
   olvasási irányát folytatja, nincs "üres tér" mellette mint jobbra zárva
   volt, (3) érezhetően nagyobb padding/betűméret, hogy elsődleges
   akcióként, ne apró chipként hasson, (4) elválasztó vonal a tag-sor előtt
   (lásd .collab-card-footer), hogy a két zóna vizuálisan is külön "szakasz"
   legyen, ne egybefolyó lista. */
.collab-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
    background: var(--gradient);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.7rem 1.5rem;
    margin: 0.2rem 0 var(--spacing-sm);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal, 0.2s ease);
}

.collab-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.collab-card-cta svg {
    flex-shrink: 0;
}

/* CTA gomb a kártya alján */
.collab-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: auto;
    padding-top: var(--spacing-sm);
    /* Finom elválasztó vonal — jelzi, hogy ez már egy másik (meta-adat)
       szakasz, nem a CTA gomb folytatása. Csak akkor van hatása, ha a CTA
       fölötte tényleg megjelenik (ahol nincs link, ott sincs vizuális kár
       egy önmagában is természetesnek ható halvány felső szegélytől). */
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.collab-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(50, 179, 141, 0.1);
    border: 1px solid rgba(50, 179, 141, 0.3);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.8rem;
}

/* Reszponzivitás */
@media (max-width: 768px) {
    .collab-card {
        flex-direction: column;
    }

    .collab-card-media {
        width: 100%;
        min-height: 160px;
        aspect-ratio: 16 / 9;
    }

    .collab-card-content {
        padding: var(--spacing-sm);
    }

    .collab-card-title {
        font-size: 1.1rem;
    }

    .collab-card-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .collab-card-media {
        aspect-ratio: 16 / 9;
    }
}
