/**
 * Surprise Me! Professional Styling
 * Clean design met Font Awesome icons
 */

/* Container */
.surprise-me-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

/* Header Section */
.surprise-header {
    text-align: center;
    margin-bottom: 3rem;
}

.surprise-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.surprise-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gender Filter */
.gender-filter {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gender-btn {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
}

.gender-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.gender-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.gender-btn i {
    font-size: 1.2rem;
}

/* Mood Filter */
.mood-filter {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.mood-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
}

.mood-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.mood-btn.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

.mood-btn i {
    font-size: 1rem;
}

/* Surprise Button */
.surprise-btn-container {
    text-align: center;
    margin: 2rem 0;
}

.surprise-btn {
    position: relative;
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.surprise-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.surprise-btn:active {
    transform: translateY(-1px);
}

.surprise-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.surprise-btn i {
    font-size: 1.5rem;
}

.surprise-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results */
.surprise-results {
    margin-top: 3rem;
}

.surprise-message {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    border-radius: 1rem;
    animation: fadeInDown 0.5s ease;
}

.surprise-message h3 {
    font-size: 1.75rem;
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.surprise-message p {
    color: #3730a3;
    font-size: 1rem;
}

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

/* Product Grid */
.surprise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Product Card */
.surprise-product {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.surprise-product.visible {
    opacity: 1;
    transform: translateY(0);
}

.surprise-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Badge */
.surprise-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.surprise-badge i {
    font-size: 1rem;
}

/* Product Image */
.surprise-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9fafb;
}

.surprise-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.surprise-product:hover .surprise-product-image img {
    transform: scale(1.08);
}

.surprise-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.surprise-product:hover .surprise-overlay {
    opacity: 1;
}

.quick-view-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.surprise-product:hover .quick-view-btn {
    transform: translateY(0);
}

/* Product Content */
.surprise-product-content {
    padding: 1.5rem;
}

.surprise-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
}

.surprise-category i {
    font-size: 0.9rem;
}

.surprise-product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.75rem 0;
    line-height: 1.4;
    color: #1a1a1a;
}

.surprise-product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.surprise-product-name a:hover {
    color: #3b82f6;
}

/* Rating */
.surprise-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
    color: #fbbf24;
}

.star {
    font-size: 0.875rem;
}

.star.empty {
    color: #d1d5db;
}

.rating-value {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
}

.rating-count {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Info Boxes */
.surprise-info-box {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.surprise-info-box i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.info-box-content {
    flex: 1;
}

.info-box-label {
    font-weight: 700;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.25rem;
}

.info-box-text {
    font-size: 0.875rem;
    line-height: 1.4;
}

.surprise-fun-fact {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
}

.surprise-fun-fact i {
    color: #d97706;
}

.surprise-fun-fact .info-box-label {
    color: #92400e;
}

.surprise-fun-fact .info-box-text {
    color: #78350f;
}

.surprise-why {
    background: #dbeafe;
    border-left: 3px solid #3b82f6;
}

.surprise-why i {
    color: #2563eb;
}

.surprise-why .info-box-label {
    color: #1e40af;
}

.surprise-why .info-box-text {
    color: #1e3a8a;
}

/* Price */
.surprise-price {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.surprise-price i {
    font-size: 1.5rem;
}

/* Actions */
.surprise-actions-row {
    display: flex;
    gap: 0.75rem;
}

.btn-add-to-cart-surprise,
.btn-view-detail {
    flex: 1;
    padding: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-add-to-cart-surprise {
    background: #3b82f6;
    color: white;
    border: none;
}

.btn-add-to-cart-surprise:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-view-detail {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    text-decoration: none;
}

.btn-view-detail:hover {
    background: #3b82f6;
    color: white;
}

/* Surprise Again */
.surprise-actions {
    text-align: center;
    margin-top: 2rem;
}

.surprise-again-btn {
    padding: 1rem 2rem;
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.surprise-again-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Loading State */
.surprise-loading {
    padding: 4rem 2rem;
    text-align: center;
}

.surprise-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    position: relative;
}

.loader-spinner {
    width: 100%;
    height: 100%;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.surprise-loading p {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Error State */
.surprise-error {
    padding: 3rem;
    text-align: center;
    background: #fef2f2;
    border-radius: 1rem;
    border: 2px dashed #fca5a5;
}

.error-icon {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.surprise-error p {
    font-size: 1.1rem;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .surprise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gender-filter,
    .mood-filter {
        flex-direction: column;
    }

    .gender-btn,
    .mood-btn {
        width: 100%;
    }

    .surprise-btn {
        width: 100%;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }

    .surprise-header h2 {
        font-size: 2rem;
    }

    .surprise-message h3 {
        font-size: 1.5rem;
    }

    .surprise-actions-row {
        flex-direction: column;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .filter-section {
        background: #1f2937;
    }

    .filter-label {
        color: #e5e7eb;
    }

    .gender-btn,
    .mood-btn {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }

    .surprise-product {
        background: #1f2937;
    }

    .surprise-product-name {
        color: #f9fafb;
    }

    .surprise-category {
        background: #374151;
        color: #d1d5db;
    }

    .surprise-message {
        background: linear-gradient(135deg, #1e3a8a 0%, #5b21b6 100%);
    }

    .surprise-message h3 {
        color: #dbeafe;
    }

    .surprise-message p {
        color: #bfdbfe;
    }
}
