/* ===== PRODUCTER - Glassmorphism Blue & White Theme ===== */
:root {
    --primary-blue: #1e5bbf;
    --dark-blue: #0b2b4f;
    --light-blue: #e9f2ff;
    --white-glass: rgba(255, 255, 255, 0.65);
    --border-glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 25px 45px rgba(0, 40, 100, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #e9f2ff 0%, #d4e4ff 50%, #c3d9ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    color: var(--dark-blue);
    line-height: 1.6;
}

/* Glassmorphism Main Card */
.glass-card {
    background: var(--white-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2.5rem;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow), inset 0 0 30px rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 1000px;
    transition: all 0.3s ease;
}

.container {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2.8rem;
    color: var(--primary-blue);
    filter: drop-shadow(0 8px 12px rgba(30, 91, 191, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(145deg, #0b2b4f, #1e5bbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.subtitle {
    color: #1e3b5a;
    font-weight: 500;
    font-size: 1.05rem;
    opacity: 0.85;
    margin-top: 0.2rem;
}

/* Search Section */
.search-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid var(--border-glass);
    box-shadow: 0 15px 35px rgba(0, 67, 156, 0.1);
}

.input-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#problemInput {
    flex: 1 1 300px;
    padding: 1.2rem 1.8rem;
    border-radius: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    font-size: 1.1rem;
    outline: none;
    color: var(--dark-blue);
    font-weight: 500;
    transition: all 0.3s ease;
}

#problemInput:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(30, 91, 191, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

#problemInput::placeholder {
    color: #8ba0bc;
    font-weight: 400;
}

#searchBtn {
    background: linear-gradient(135deg, #1e5bbf, #144a9e);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1.2rem 2.5rem;
    border-radius: 3rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(30, 91, 191, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

#searchBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(20, 74, 158, 0.4);
    background: linear-gradient(135deg, #2268d1, #0d3d7a);
}

#searchBtn:active {
    transform: translateY(0);
}

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

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    padding: 0.6rem 1.3rem;
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.filter-group:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-group i {
    color: var(--primary-blue);
    font-size: 1rem;
}

.filter-group select {
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--dark-blue);
    outline: none;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.2rem 0;
    font-family: 'Inter', sans-serif;
}

/* Results Area */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-header h2 {
    font-weight: 700;
    color: var(--dark-blue);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-badge {
    background: rgba(30, 91, 191, 0.15);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.product-grid::-webkit-scrollbar {
    width: 6px;
}

.product-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.product-grid::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.product-item {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 1.8rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    animation: slideIn 0.4s ease;
}

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

.product-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow: 0 15px 35px rgba(30, 91, 191, 0.15);
}

.product-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    min-width: 60px;
    text-align: center;
}

.product-details {
    flex: 1;
}

.product-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #2c3e50;
}

.product-price {
    font-weight: 700;
    color: #0b5e2e;
    font-size: 1.1rem;
}

.country-badge {
    background: rgba(30, 91, 191, 0.12);
    padding: 0.3rem 0.9rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.shop-name {
    font-weight: 600;
    color: var(--primary-blue);
}

.rating-stars {
    color: #f59e0b;
    font-weight: 600;
}

.product-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    background: rgba(30, 91, 191, 0.1);
    border-radius: 2rem;
    transition: all 0.2s ease;
}

.product-link:hover {
    background: var(--primary-blue);
    color: white;
}

/* Empty & Loading States */
.empty-state, .loading-spinner {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--primary-blue);
}

.empty-state i, .loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

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

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

/* Footer */
.footer-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.recent-searches, .popular-searches {
    flex: 1 1 250px;
}

.footer-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-blue);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--dark-blue);
}

.tag:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 91, 191, 0.3);
}

/* Error Message */
.error-message {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #dc2626;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    #searchBtn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .product-item {
        flex-direction: column;
        text-align: center;
    }
    
    .product-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    
    .glass-card {
        border-radius: 1.5rem;
    }
    
    .container {
        padding: 1.2rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}