/* Item Cards */
.items { padding: 24px 0 56px; }

.items__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    transition: min-height 0.35s var(--ease-out);
}

.items__grid.is-transitioning { pointer-events: none; }

.icard {
    background: var(--surf);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--bord);
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: opacity 0.45s var(--ease-out), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.icard--enter { opacity: 0; transform: translateY(20px) scale(0.98); }
.icard--visible { opacity: 1; transform: translateY(0) scale(1); }
.icard--visible:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.45); /* Light Sapphire Blue Border */
    background: linear-gradient(180deg, var(--surf) 0%, rgba(240, 249, 255, 0.8) 100%); /* Subtle Ice Blue Tint */
    box-shadow: 0 16px 36px rgba(56, 189, 248, 0.18), 0 4px 12px rgba(2, 132, 199, 0.1); /* Light Sapphire Glow */
    transition-delay: 0s !important;
}
.icard--exit { opacity: 0; transform: translateY(-12px) scale(0.98); pointer-events: none; transition-duration: 0.35s; }
.icard--feat { box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25); }

/* New Typographic Card Styles */
.icard__action-btn:hover {
    background: var(--prim) !important;
    color: #fff !important;
    border-color: var(--prim) !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}

.icard:hover .icard__action-btn {
    border-color: rgba(2, 132, 199, 0.4);
}

.icard__tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    z-index: 2;

    /* Prizma Kırılması Aurora Efekti */
    background: padding-box #0f172a;
    border: 1.5px solid transparent;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(#0f172a, #0f172a), 
                      linear-gradient(90deg, #0f172a 40%, #ef4444 45%, #eab308 48%, #fff 50%, #38bdf8 52%, #8b5cf6 55%, #0f172a 60%);
    background-size: 100% 100%, 350% 100%;
    animation: border-sweep 3s linear infinite;
}

@keyframes border-sweep { 
    0% { background-position: 0% 0%, 0% 0%; } 
    100% { background-position: 0% 0%, 300% 0%; } 
}



.icard__body {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.icard__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.icard__cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--prim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--prim-soft);
    padding: 6px 12px;
    border-radius: 8px;
}

/* Small Animated Icon in Top Right */
.icard__small-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--prim);
    background: var(--prim-soft);
    border-radius: 10px;
    opacity: 0.95;
    border: 1px solid transparent; /* Replaced by laser border */
}

.icard__small-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

/* Sharp Laser Core */
.icard__small-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0) 15%, rgba(56, 189, 248, 0.4) 30%, #38bdf8 42%, #ffffff 50%, #7dd3fc 58%, rgba(56, 189, 248, 0.4) 70%, rgba(56, 189, 248, 0) 85%);
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: icard-border-sweep 3s ease-in-out infinite alternate;
}

/* Volumetric Moving Fog */
.icard__small-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0) 30%, rgba(56, 189, 248, 0.3) 42%, rgba(56, 189, 248, 0.7) 50%, rgba(56, 189, 248, 0.3) 58%, rgba(56, 189, 248, 0) 70%);
    background-size: 300% 100%;
    filter: blur(8px);
    opacity: 0.8;
    pointer-events: none;
    animation: icard-border-sweep 3s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes icard-border-sweep { 
    0% { background-position: 0% 0%; } 
    100% { background-position: 300% 0%; } 
}

.icard__title {
    font-size: clamp(16px, 4.2vw, 18px);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



.icard__bottom-group {
    margin-top: auto; /* Pushes everything above it up, and sticks this to the bottom */
    display: flex;
    flex-direction: column;
}



.icard__desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--mut);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.icard__foot {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
}

.icard__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: var(--bg-soft);
    color: var(--prim);
    font-weight: 600;
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid var(--bord);
    transition: all 0.25s var(--ease-out);
}



.icard__btn--whatsapp {
    width: 100%;
    text-align: center;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    cursor: pointer;
}

.icard__btn--whatsapp:hover {
    background: #1ebd59;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.icard__btn--whatsapp:active {
    transform: translateY(0) scale(0.98);
}

/* Category Filter Tabs */
.home-grid__filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.filter-tab {
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mut);
    background: var(--bg-soft);
    border: 1px solid var(--bord);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
}

.filter-tab:hover {
    color: var(--prim);
    border-color: rgba(56, 189, 248, 0.4);
    background: var(--surf);
}

.filter-tab.is-active {
    color: #fff;
    background: var(--prim);
    border-color: var(--prim);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

/* ── Card Media (Image Banner) ── */
.icard__media {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #0f172a;
}

.icard__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.icard:hover .icard__img {
    transform: scale(1.06);
}

.icard__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(0, 0, 0, 0) 45%, rgba(15, 23, 42, 0.6) 100%);
    pointer-events: none;
}

/* Compact Photo Count Badge */
.icard__photo-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 10px;
    font-weight: 600;
    padding: 3.5px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.icard__photo-count svg {
    width: 11px;
    height: 11px;
}

/* Compact Shimmer Sapphire Laser Badge on Image */
.icard__media-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3.5px 10px;
    background: rgba(11, 19, 41, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #e0f2fe;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    z-index: 3;
    border: 1px solid rgba(56, 189, 248, 0.35);
    animation: badge-glow-pulse 3s ease-in-out infinite alternate;
}

.icard__media-badge svg {
    width: 12px;
    height: 12px;
    color: #38bdf8;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.6));
}

.icard__media-badge::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(90deg,
        rgba(14, 165, 233, 0) 10%,
        rgba(30, 58, 138, 0.6) 25%,
        #2563eb 40%,
        #ffffff 50%,
        #0ea5e9 60%,
        rgba(30, 58, 138, 0.6) 75%,
        rgba(14, 165, 233, 0) 90%
    );
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: badge-border-sweep 3s ease-in-out infinite alternate;
}

.icard__media-badge::after {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 30px;
    background: linear-gradient(90deg,
        rgba(14, 165, 233, 0) 25%,
        rgba(30, 58, 138, 0.55) 40%,
        rgba(14, 165, 233, 0.85) 50%,
        rgba(30, 58, 138, 0.55) 60%,
        rgba(14, 165, 233, 0) 75%
    );
    background-size: 300% 100%;
    filter: blur(8px);
    opacity: 0.75;
    pointer-events: none;
    animation: badge-border-sweep 3s ease-in-out infinite alternate;
    z-index: -1;
}

.icard--has-img .icard__body {
    padding-top: 20px;
}

