/* Hediye Bulucu - Modern CSS Stilleri */

.hediye-bulucu-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hediye-bulucu-header {
    text-align: center;
    margin-bottom: 40px;
}

.hediye-bulucu-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.hediye-bulucu-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Quiz Steps */
.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Indicator */
.step-indicator {
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #999;
}

.step-indicator .current-step {
    font-size: 28px;
    font-weight: 700;
    color: #6366f1;
}

.step-indicator .total-steps {
    font-size: 18px;
    color: #999;
}

/* Question Container */
.question-container {
    margin-bottom: 30px;
}

.question-label {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

/* Option Cards */
.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* Beden seçimi için daha kompakt grid */
.beden-cards {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.option-card {
    position: relative;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
}

.option-card:hover {
    border-color: #6366f1;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card input[type="radio"]:checked ~ .card-content {
    color: #6366f1;
}

.option-card input[type="radio"]:checked ~ .card-content .emoji {
    transform: scale(1.2);
}

.option-card:has(input:checked) {
    border-color: #6366f1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.option-card:has(input:checked) .card-content {
    color: #fff;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.card-content .emoji {
    font-size: 36px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.card-content .emoji img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.card-content .text {
    font-size: 15px;
    font-weight: 600;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-prev,
.btn-next,
.btn-submit,
.btn-restart {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn-prev {
    background: #f3f4f6;
    color: #333;
}

.btn-prev:hover {
    background: #e5e7eb;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-restart {
    background: #fff;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.btn-restart:hover {
    background: #6366f1;
    color: #fff;
}

/* Loading */
.hediye-bulucu-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hediye-bulucu-loading p {
    font-size: 16px;
    color: #666;
}

/* Results */
.hediye-bulucu-results {
    animation: fadeIn 0.5s ease-in;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.results-header h3 {
    font-size: 26px;
    color: #333;
    margin: 0;
}

/* Fiyat Filtresi */
.price-filter-container {
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 35px;
}

.price-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price-filter-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.price-range-display {
    font-size: 16px;
    font-weight: 600;
    color: #6366f1;
    background: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.price-slider-wrapper {
    position: relative;
    padding: 15px 0 25px 0;
}

/* Range Slider Container */
.range-slider {
    position: relative;
    height: 8px;
    margin: 10px 0 35px 0;
}

.range-slider-track {
    position: absolute;
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    top: 0;
}

.range-slider-range {
    position: absolute;
    height: 8px;
    background: linear-gradient(to right, #10b981 0%, #3b82f6 50%, #6366f1 100%);
    border-radius: 4px;
    top: 0;
    left: 0;
    right: 0;
}

.price-slider-thumb {
    position: absolute;
    width: 100%;
    height: 8px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    top: 0;
}

.price-slider-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #6366f1;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.price-slider-thumb::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.price-slider-thumb::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #6366f1;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.price-slider-thumb::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.price-slider-thumb::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: transparent;
}

.price-slider-thumb::-moz-range-track {
    -moz-appearance: none;
    appearance: none;
    height: 8px;
    background: transparent;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    padding: 0 5px;
}

.price-labels span {
    text-align: center;
    flex: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-card-link {
    display: block;
    text-decoration: none;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f9fafb;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.product-title-link:hover .product-title {
    color: #6366f1;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-view,
.btn-add-cart {
    flex: 1;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view {
    background: #f3f4f6;
    color: #333;
}

.btn-view:hover {
    background: #e5e7eb;
}

.btn-add-cart {
    background: #6366f1;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: #4f46e5;
}

.btn-add-cart.loading {
    background: #9ca3af;
    cursor: wait;
    pointer-events: none;
}

.btn-add-cart.added {
    background: #10b981;
}

.btn-add-cart.error {
    background: #ef4444;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hediye-bulucu-container {
        padding: 20px;
        margin: 20px;
    }
    
    .hediye-bulucu-header h2 {
        font-size: 24px;
    }
    
    .question-label {
        font-size: 18px;
    }
    
    .option-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .card-content .emoji {
        font-size: 28px;
    }
    
    .card-content .text {
        font-size: 13px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
    
    .price-filter-container {
        padding: 20px;
    }
    
    .price-filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .price-labels {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .option-cards {
        grid-template-columns: 1fr;
    }
    
    .price-labels span:nth-child(even) {
        display: none;
    }
}
