/* ═══════════════════════════════════════════════════════════════
   DRAMICBOX - Home Feed Customizer (Ana Sayfa Özelleştirme) CSS
   ═══════════════════════════════════════════════════════════════ */

/* Modal Backdrop & Overlay */
.home-customizer-overlay {
    position: fixed;
    inset: 0;
    z-index: 100300;
    background: rgba(5, 5, 15, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: hcFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Window */
.home-customizer-modal {
    width: min(620px, 100%);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(150deg, #17152b 0%, #0d0c1c 100%);
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 28px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(124, 58, 237, 0.2);
    overflow: hidden;
    animation: hcPopIn 0.3s cubic-bezier(0.2, 1.25, 0.3, 1) both;
}

@keyframes hcPopIn {
    from { opacity: 0; transform: translateY(18px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Header */
.home-customizer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.home-customizer-header .hc-title-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-customizer-header .hc-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(219, 39, 119, 0.25));
    border: 1px solid rgba(167, 139, 250, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b5fd;
    font-size: 1.35rem;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
}

.home-customizer-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.home-customizer-header p {
    margin: 3px 0 0;
    color: #94a3b8;
    font-size: 0.78rem;
}

.home-customizer-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.home-customizer-close:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Modal Body / Section List */
.home-customizer-body {
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hc-section-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    user-select: none;
}

.hc-section-item:hover {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(167, 139, 250, 0.25);
}

.hc-section-item.is-disabled {
    opacity: 0.5;
    background: rgba(0, 0, 0, 0.25);
    border-style: dashed;
}

/* Required / Non-hidable section (Sponsors) */
.hc-section-item.is-required {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(124, 58, 237, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
}

.hc-section-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* Order control buttons */
.hc-order-controls {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hc-order-btn {
    width: 26px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.68rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.hc-order-btn:hover:not(:disabled) {
    background: rgba(124, 58, 237, 0.4);
    color: #fff;
    border-color: #a78bfa;
}

.hc-order-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.hc-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #a78bfa;
    flex-shrink: 0;
}

.hc-section-name {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
}

.hc-badge-required {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.hc-section-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Modern iOS Style Toggle Switch */
.hc-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.hc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 34px;
}

.hc-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #cbd5e1;
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hc-switch input:checked + .hc-slider {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: rgba(16, 185, 129, 0.4);
}

.hc-switch input:checked + .hc-slider:before {
    transform: translateX(22px);
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.hc-switch.is-locked .hc-slider {
    cursor: not-allowed;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    opacity: 0.85;
}

.hc-switch.is-locked .hc-slider:before {
    transform: translateX(22px);
    background-color: #fff;
}

/* Modal Footer */
.home-customizer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.hc-btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hc-btn-reset {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.hc-btn-reset:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hc-btn-cancel {
    background: transparent;
    color: #94a3b8;
}

.hc-btn-cancel:hover {
    color: #fff;
}

.hc-btn-save {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.4);
}

.hc-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.55);
    filter: brightness(1.08);
}

/* Floating Home Banner Button (Subtle & Sleek on Homepage) */
.home-layout-trigger-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(167, 139, 250, 0.25);
    color: #c4b5fd;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.home-layout-trigger-pill:hover {
    background: rgba(124, 58, 237, 0.18);
    border-color: rgba(167, 139, 250, 0.5);
    color: #fff;
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
    transform: translateY(-1px);
}
