/* HC Galeri · Görsel detayında dört eşit özellik kartı v1 */

.detail-feature-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin-top: 12px;
}

.detail-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    min-height: 260px;
    max-width: 100%;
    margin: 0 !important;
    padding: 10px !important;
    overflow: visible;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    box-sizing: border-box;
}

.detail-feature-card-head,
.detail-feature-card-grid .detail-color-palette-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 32px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--border);
}

.detail-feature-card-head-icon,
.detail-feature-card-grid .detail-color-palette-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
}

.detail-feature-card-head-icon svg,
.detail-feature-card-grid .detail-color-palette-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-feature-card-grid .detail-color-palette-icon svg {
    fill: currentColor;
    stroke: none;
}

.detail-feature-card-head-copy,
.detail-feature-card-grid .detail-color-palette-head > span:last-child {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.detail-feature-card-head-copy strong,
.detail-feature-card-grid .detail-color-palette-head strong {
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
}

.detail-feature-card-head-copy small,
.detail-feature-card-grid .detail-color-palette-head small {
    overflow: hidden;
    color: var(--muted);
    font-size: 8.8px;
    line-height: 1.25;
    text-overflow: ellipsis;
}

/* Renk paleti kartı */
.detail-feature-card-grid > .detail-color-palette {
    gap: 8px;
}

.detail-feature-card-grid .detail-color-palette-swatches {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    max-height: 205px;
    padding-right: 2px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.detail-feature-card-grid .detail-color-swatch {
    min-height: 29px;
    padding: 3px 5px;
}

.detail-feature-card-grid .detail-color-palette:not(:has(.detail-color-swatch))::after {
    content: "Renk paleti henüz oluşturulmadı.";
    display: grid;
    place-items: center;
    flex: 1;
    min-height: 120px;
    padding: 10px;
    color: var(--muted);
    font-size: 9px;
    text-align: center;
}

/* Çözünürlük kartı */
.detail-feature-card-resolutions > .detail-section-title {
    display: none;
}

.detail-feature-card-resolutions .detail-resolution-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 4px;
    width: 100%;
    min-width: 0;
    max-height: 205px;
    margin: 0;
    padding-right: 2px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.detail-feature-card-resolutions .detail-resolution-row .button {
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 31px;
    padding: 4px 6px;
    box-sizing: border-box;
}

.detail-feature-card-resolutions .copyright-download-restricted {
    display: grid;
    align-content: center;
    flex: 1;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 8px;
}

.detail-feature-card-resolutions .copyright-download-restricted .button {
    width: 100%;
}

/* İşlem kartı */
.detail-feature-card-actions .detail-primary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 4px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.detail-feature-card-actions .detail-primary-actions > *,
.detail-feature-card-actions .detail-primary-actions > form,
.detail-feature-card-actions .detail-primary-actions > details,
.detail-feature-card-actions .detail-primary-actions > .button,
.detail-feature-card-actions .detail-primary-actions > form > .button,
.detail-feature-card-actions .detail-primary-actions > details > summary {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.detail-feature-card-actions .detail-primary-actions .button,
.detail-feature-card-actions .detail-primary-actions summary.button {
    justify-content: flex-start;
    min-height: 31px;
    padding: 4px 7px;
    overflow: hidden;
}

.detail-feature-card-actions .detail-primary-actions .button > span,
.detail-feature-card-actions .detail-primary-actions summary.button > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-feature-card-actions .detail-board-menu {
    position: relative;
    z-index: 8;
}

.detail-feature-card-actions .detail-board-popover {
    right: auto;
    left: 0;
    width: min(330px, calc(100vw - 34px));
    max-width: none;
    z-index: 30;
}

/* Sosyal medya kartı */
.detail-feature-card-social .social-share-strip-detail,
.detail-feature-card-social .social-share-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: center;
    gap: 6px;
    flex: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.detail-feature-card-social .social-share-button {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 5px;
    box-sizing: border-box;
}

.detail-feature-card-social .social-share-svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1100px) {
    .detail-feature-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .detail-feature-card-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .detail-feature-card {
        min-height: 0;
    }

    .detail-feature-card-grid .detail-color-palette-swatches,
    .detail-feature-card-resolutions .detail-resolution-row {
        max-height: none;
        overflow: visible;
    }

    .detail-feature-card-social .social-share-strip-detail,
    .detail-feature-card-social .social-share-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
