/* =============================================================================
   Profil — Takipçiler / Takip Edilenler / Takip Ettiği Üreticiler / Koleksiyonlar
   ============================================================================= */
.pc-grid, .cc-grid, .pc-subnav {
    --pc-green: #1A6355;
    --pc-green-soft: #e8f1ef;
    --pc-pink: #b9475e;
    --pc-orange: #e79275;
    --pc-cream: #FFF3E5;
    --pc-text: #24332f;
    --pc-muted: #7d91a3;
    --pc-line: #e6e6e6;
    --pc-ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Alt sekmeler (Kullanıcılar / Koleksiyonlar / Kategoriler) ---------- */
.pc-subnav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 22px;
}
.pc-subnav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--pc-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pc-text);
    font: 500 14px/1 'Fira Sans', sans-serif;
    text-decoration: none;
    transition: background .2s var(--pc-ease), border-color .2s var(--pc-ease), color .2s var(--pc-ease);
}
.pc-subnav a:hover { border-color: var(--pc-green); color: var(--pc-green); }
.pc-subnav a.active { background: var(--pc-green); border-color: var(--pc-green); color: #fff; }
.pc-subnav__num {
    min-width: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--pc-green-soft);
    color: var(--pc-green);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.pc-subnav a.active .pc-subnav__num { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- Grid ---------- */
.pc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.pc-grid--stores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1050px) {
    .pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pc-grid--stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 750px) {
    .pc-grid, .pc-grid--stores { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 520px) {
    .pc-grid--stores { grid-template-columns: 1fr; }
}

/* ---------- Kart ---------- */
.pc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--pc-ease), transform .5s var(--pc-ease), box-shadow .25s var(--pc-ease), border-color .25s var(--pc-ease);
    transition-delay: calc(var(--pc-i, 0) * 45ms), calc(var(--pc-i, 0) * 45ms), 0s, 0s;
}
.pc-card.is-visible { opacity: 1; transform: none; }
.pc-card:hover { box-shadow: 0 8px 24px rgba(26,99,85,.12); border-color: #d7e6e2; }
@media (prefers-reduced-motion: reduce) {
    .pc-card { opacity: 1; transform: none; transition: none; }
}

/* Kişi kartı */
.pc-card--person {
    align-items: center;
    text-align: center;
    padding: 22px 14px 16px;
    background: linear-gradient(180deg, var(--pc-cream) 0, var(--pc-cream) 54px, #fff 54px);
}
.pc-avatar {
    position: relative;
    display: block;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--pc-green);
    background: var(--pc-green-soft);
    overflow: hidden;
    transition: transform .3s var(--pc-ease);
}
.pc-card--person:hover .pc-avatar { transform: scale(1.05); }
.pc-avatar img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-avatar__initial {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pc-green);
    font: 600 30px/1 'Barlow Condensed', sans-serif;
}

.pc-card__body { flex: 1; min-width: 0; width: 100%; }
.pc-card__title {
    margin: 12px 0 2px;
    font: 600 18px/1.2 'Barlow Condensed', sans-serif;
    color: var(--pc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-card__title a { color: inherit; text-decoration: none; }
.pc-card__title a:hover { color: var(--pc-green); }
.pc-card__sub {
    margin: 0;
    color: var(--pc-muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-card__sub a { color: inherit; text-decoration: none; }
.pc-card__sub a:hover { color: var(--pc-green); }
.pc-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.pc-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #595959;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}
.pc-chip .fa { color: var(--pc-pink); }
.pc-chip--store { background: var(--pc-green-soft); color: var(--pc-green); font-weight: 500; }
.pc-chip--store .fa { color: var(--pc-green); }
a.pc-chip--store:hover { background: var(--pc-green); color: #fff; }
a.pc-chip--store:hover .fa { color: #fff; }
.pc-muted { color: var(--pc-muted); }

.pc-card__actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
}

/* Dükkân kartı */
.pc-card--store {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
}
.pc-card--store .pc-card__body { flex: 1 1 0; }
.pc-card--store .pc-card__title { margin-top: 2px; }
.pc-card--store .pc-card__meta { justify-content: flex-start; margin-top: 8px; }
.pc-card--store .pc-card__actions { flex: 1 1 100%; margin-top: 2px; }
.pc-store__logo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 2px solid var(--pc-green);
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s var(--pc-ease);
}
.pc-card--store:hover .pc-store__logo { transform: rotate(-2deg) scale(1.04); }
.pc-store__logo img { width: 100%; height: 100%; object-fit: cover; }
.pc-store__logo-ph { color: var(--pc-green); font-size: 28px; }
.pc-rating { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--pc-text); }
.pc-rating__stars { color: #f5a623; font-size: 13px; letter-spacing: 1px; }

/* ---------- Butonlar ---------- */
.pc-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    font: 500 14px/1.1 'Fira Sans', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s var(--pc-ease), color .2s var(--pc-ease), border-color .2s var(--pc-ease), transform .15s var(--pc-ease);
}
.pc-btn:active { transform: scale(.97); }
.pc-btn--ghost { border-color: var(--pc-green); color: var(--pc-green); background: #fff; }
.pc-btn--ghost:hover { background: var(--pc-green); color: #fff; }

.pc-btn--follow { background: var(--pc-pink); color: #fff; }
.pc-btn--follow:hover { background: var(--pc-orange); color: #fff; }
.pc-btn--follow .pc-btn__on, .pc-btn--follow .pc-btn__hover { display: none; }
.pc-btn--follow.is-following { background: #fff; color: var(--pc-green); border-color: #cbd3d9; }
.pc-btn--follow.is-following .pc-btn__off { display: none; }
.pc-btn--follow.is-following .pc-btn__on { display: inline; }
.pc-btn--follow.is-following:hover { border-color: var(--pc-pink); color: var(--pc-pink); background: #fff; }
.pc-btn--follow.is-following:hover .pc-btn__on { display: none; }
.pc-btn--follow.is-following:hover .pc-btn__hover { display: inline; }
.pc-btn.is-loading { opacity: .6; pointer-events: none; }
.pc-btn.is-pulse { animation: pc-pulse .45s var(--pc-ease); }
@keyframes pc-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (hover: none) {
    .pc-btn--follow.is-following:hover .pc-btn__on { display: inline; }
    .pc-btn--follow.is-following:hover .pc-btn__hover { display: none; }
    .pc-btn--follow.is-following:hover { color: var(--pc-green); border-color: #cbd3d9; }
}

/* ---------- Boş durum & sayfalama ---------- */
.pc-empty {
    max-width: 420px;
    margin: 24px auto;
    padding: 36px 24px;
    text-align: center;
    border: 1px dashed #d1d7dc;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, var(--pc-cream, #FFF3E5));
}
.pc-empty__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #e8f1ef;
    color: #1A6355;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    animation: pc-float 3.2s ease-in-out infinite;
}
@keyframes pc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.pc-empty__text { margin: 0 0 14px; color: #595959; font-size: 15px; line-height: 1.5; }
.pc-empty__cta {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 8px;
    background: #b9475e;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.pc-empty__cta:hover { background: #e79275; color: #fff; }

.pc-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 26px 0 6px;
}
.pc-pager__btn {
    padding: 8px 14px;
    border: 1px solid #1A6355;
    border-radius: 8px;
    color: #1A6355;
    text-decoration: none;
    font-size: 14px;
}
.pc-pager__btn:hover { background: #1A6355; color: #fff; }
.pc-pager__info { color: #7d91a3; font-size: 14px; }

@media (max-width: 400px) {
    .pc-card--person { padding: 18px 10px 12px; }
    .pc-avatar { width: 64px; height: 64px; }
    .pc-card__title { font-size: 16px; }
    .pc-btn { font-size: 13px; padding: 7px 8px; }
}

/* =============================================================================
   Koleksiyon kartları
   ============================================================================= */
.cc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
@media (max-width: 1050px) { .cc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 750px) { .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.cc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--pc-ease), transform .5s var(--pc-ease), box-shadow .25s var(--pc-ease);
    transition-delay: calc(var(--pc-i, 0) * 45ms), calc(var(--pc-i, 0) * 45ms), 0s;
}
.cc-card.is-visible { opacity: 1; transform: none; }
.cc-card:hover { box-shadow: 0 10px 28px rgba(26,99,85,.14); }
@media (prefers-reduced-motion: reduce) { .cc-card { opacity: 1; transform: none; transition: none; } }

.cc-cover {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    aspect-ratio: 4 / 3;
    background: #f3f3f3;
    overflow: hidden;
}
.cc-cover__img { position: relative; overflow: hidden; background: #efefef; }
.cc-cover__img--main { grid-row: 1 / span 2; }
.cc-cover__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--pc-ease);
}
.cc-card:hover .cc-cover__img--main img { transform: scale(1.05); }
.cc-cover__img--empty { display: flex; align-items: center; justify-content: center; color: #c8c0bb; font-size: 22px; }
.cc-cover__count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(26,99,85,.92);
    color: #fff;
    font: 600 12px/1.2 'Fira Sans', sans-serif;
}
.cc-badges { position: absolute; left: 8px; top: 8px; z-index: 2; display: flex; gap: 5px; }
.cc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: #4D4D4D;
    font-size: 11px;
    text-decoration: none;
}
.cc-badge .fa { color: #b9475e; }

.cc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cc-title {
    margin: 0;
    font: 600 19px/1.15 'Barlow Condensed', sans-serif;
    color: #24332f;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cc-title a { color: inherit; text-decoration: none; }
.cc-title a:hover { color: #1A6355; }
.cc-meta { color: #7d91a3; font-size: 13px; }
.cc-meta span + span::before { content: '·'; margin: 0 6px; }
.cc-actions { margin-top: auto; padding-top: 6px; }
.cc-actions .fu-buttons { margin: 0; }
.cc-actions a, .cc-actions button { width: 100%; box-sizing: border-box; }

.cc-card--create {
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 2px dashed #cbd3d9;
    background: linear-gradient(180deg, #fff, #FFF3E5);
    box-shadow: none;
    text-decoration: none;
    color: #1A6355;
    gap: 10px;
}
.cc-card--create:hover { border-color: #1A6355; box-shadow: none; }
.cc-card--create .cc-create__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1A6355;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform .3s var(--pc-ease);
}
.cc-card--create:hover .cc-create__icon { transform: rotate(90deg); }
.cc-card--create strong { font: 600 18px/1.2 'Barlow Condensed', sans-serif; }
.cc-card--create small { color: #7d91a3; font-size: 13px; }

@media (max-width: 400px) {
    .cc-title { font-size: 17px; }
    .cc-body { padding: 10px; }
}

/* Eski masonry kapsayıcısı (.container-boxes.event-masonry) product-card-modern.css'te 4 sütunlu grid'e
   çevrilmiş; koleksiyon ızgarası / boş durum o grid'in tüm satırını kaplamalı. */
.container-boxes > .cc-grid,
.container-boxes > .pc-empty,
.container-boxes > .no-results,
.container-boxes > .event-box-create {
    grid-column: 1 / -1;
}
.container-boxes > .cc-grid { width: 100%; }
.cc-grid > .cc-card.event-box { width: auto !important; }
.cc-body { text-align: left; }
.cc-actions .button { border-radius: 8px; padding: 9px 12px; font-size: 14px; }
