/**
 * Aras WEB Pazaryeri - Ürün Özelleştirme & Kişiselleştirme Stilleri
 */

.product-customizations-box {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(10, 15, 25, 0.7);
    border: 1px solid rgba(5, 217, 232, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.product-customizations-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #05d9e8, #00ff88, #ff2a6d);
}

.customizations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.customizations-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customizations-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(5, 217, 232, 0.2), rgba(0, 255, 136, 0.2));
    border: 1px solid rgba(5, 217, 232, 0.4);
    color: #05d9e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 15px rgba(5, 217, 232, 0.2);
}

.customizations-title h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading, 'Outfit', sans-serif);
}

.customizations-title p {
    margin: 3px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #aaa);
}

.customizations-live-badge {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid #00ff88;
    color: #00ff88;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
    animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.customizations-fields-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.custom-field-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.1rem;
    transition: all 0.25s ease;
}

.custom-field-group:hover,
.custom-field-group:focus-within {
    border-color: rgba(5, 217, 232, 0.4);
    background: rgba(5, 217, 232, 0.02);
}

.custom-field-group.has-error {
    border-color: #ff2a6d !important;
    background: rgba(255, 42, 109, 0.06) !important;
    animation: fieldShake 0.4s ease;
}

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.custom-field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.custom-field-label-row label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.required-indicator {
    color: #ff2a6d;
    font-weight: 800;
    font-size: 1.1rem;
}

.optional-indicator {
    color: var(--text-secondary, #888);
    font-size: 0.78rem;
    font-weight: 400;
}

.custom-price-pill {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.35);
    color: #00ff88;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Metin Girişleri ve Karakter Sayacı */
.input-with-counter {
    position: relative;
    width: 100%;
}

.input-with-counter .form-control-custom {
    width: 100%;
    padding-right: 65px;
    box-sizing: border-box;
}

.char-counter {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 0.72rem;
    color: var(--text-secondary, #777);
    pointer-events: none;
    font-family: monospace;
}

/* Radio Hapları */
.custom-radio-pills-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.custom-radio-pill {
    margin: 0;
    cursor: pointer;
}

.custom-radio-pill input[type="radio"] {
    display: none;
}

.custom-radio-pill .pill-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.custom-radio-pill input[type="radio"]:checked + .pill-body {
    border-color: #05d9e8;
    background: rgba(5, 217, 232, 0.12);
    box-shadow: 0 0 15px rgba(5, 217, 232, 0.3);
}

.custom-radio-pill .pill-label {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.custom-radio-pill .pill-price {
    color: #00ff88;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Checkbox Kartları */
.custom-checkbox-list-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.custom-checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

.custom-checkbox-card input[type="checkbox"] {
    display: none;
}

.checkbox-indicator {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox-card input[type="checkbox"]:checked ~ .checkbox-indicator {
    background: #00ff88;
    border-color: #00ff88;
    color: #000;
}

.custom-checkbox-card input[type="checkbox"]:checked {
    border-color: #00ff88;
}

.custom-checkbox-card:has(input[type="checkbox"]:checked) {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.08);
}

.checkbox-label-text {
    flex: 1;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.checkbox-price-badge {
    color: #00ff88;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: auto;
}

/* Dosya Yükleme Alanı */
.custom-file-upload-box {
    position: relative;
    width: 100%;
}

.custom-file-hidden-input {
    display: none;
}

.file-drop-zone {
    border: 2px dashed rgba(5, 217, 232, 0.4);
    background: rgba(5, 217, 232, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: #05d9e8;
    background: rgba(5, 217, 232, 0.1);
    box-shadow: 0 0 20px rgba(5, 217, 232, 0.2);
}

.file-drop-zone .drop-icon {
    font-size: 2rem;
    color: #05d9e8;
}

.file-drop-zone .drop-text strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.file-drop-zone .drop-text span {
    font-size: 0.8rem;
    color: var(--text-secondary, #888);
}

.file-upload-progress {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    height: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.progress-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, #05d9e8, #00ff88);
    transition: width 0.3s ease;
}

.progress-text {
    position: relative;
    z-index: 2;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.file-preview-card {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff88;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-meta {
    flex: 1;
    overflow: hidden;
}

.file-name-display {
    display: block;
    color: #fff;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size-display {
    font-size: 0.75rem;
    color: var(--text-secondary, #888);
}

.btn-remove-file {
    background: rgba(255, 42, 109, 0.15);
    border: 1px solid #ff2a6d;
    color: #ff2a6d;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-remove-file:hover {
    background: #ff2a6d;
    color: #fff;
}

.custom-field-help-text {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary, #888);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Admin Builder Table & Controls */
.custom-options-admin-card {
    background: rgba(5, 217, 232, 0.03);
    border: 1px solid rgba(5, 217, 232, 0.25);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-opt-item-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    transition: border-color 0.2s ease;
}

.admin-opt-item-card:hover {
    border-color: rgba(5, 217, 232, 0.4);
}

.admin-opt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-choices-table {
    width: 100%;
    margin-top: 0.75rem;
    border-collapse: collapse;
}

.admin-choices-table th {
    font-size: 0.8rem;
    color: var(--text-secondary, #888);
    text-align: left;
    padding: 6px;
}

.admin-choices-table td {
    padding: 4px 6px;
}
