/**
 * DSIDE.CO.UK - Professional Design System
 * Modern, clean, and professional UI/UX
 */

:root {
    /* Color Palette */
    --primary-navy: #1e3a8a;
    --primary-blue: #2563eb;
    --primary-light: #3b82f6;

    --accent-yellow: #fbbf24;
    --accent-gold: #f59e0b;

    --success-green: #10b981;
    --success-light: #d1fae5;

    --danger-red: #ef4444;
    --danger-light: #fee2e2;

    --warning-orange: #f97316;
    --warning-light: #ffedd5;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Global Styles */
body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background-color: var(--gray-50);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gray-900);
}

/* Navigation */
.navbar-professional {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.navbar-brand-logo {
    height: 45px;
    width: auto;
    transition: transform 0.2s ease;
}

.navbar-brand-logo:hover {
    transform: scale(1.05);
}

.nav-link-professional {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link-professional:hover {
    color: var(--primary-blue);
    background-color: var(--gray-100);
}

/* Hero Section */
.hero-professional {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Search Box */
.search-box-professional {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 700px;
    margin: 0 auto;
}

.search-input-professional {
    border: 2px solid var(--gray-200);
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.search-input-professional:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.btn-search-professional {
    background: var(--primary-blue);
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.btn-search-professional:hover {
    background: var(--primary-navy);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Search Dropdown */
.search-dropdown-professional {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    margin-top: 0.5rem;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

/* Cards */
.card-professional {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-professional:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card-header-professional {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.card-body-professional {
    padding: 1.5rem;
}

/* Feature Cards */
.feature-card-professional {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.75rem;
}

/* Price Cards */
.price-card-professional {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.price-card-professional:hover {
    background: var(--gray-50);
    border-left-color: var(--primary-blue);
    transform: translateX(4px);
}

.price-card-professional.best-price {
    background: linear-gradient(135deg, var(--success-light) 0%, #f0fdf4 100%);
    border-left-color: var(--success-green);
}

.best-price-badge {
    background: var(--success-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* Stats Cards */
.stats-card-professional {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid;
    transition: all 0.2s ease;
}

.stats-card-professional:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stats-card-professional.lowest {
    border-left-color: var(--success-green);
}

.stats-card-professional.average {
    border-left-color: var(--accent-yellow);
}

.stats-card-professional.highest {
    border-left-color: var(--danger-red);
}

.stats-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.5rem;
}

.stats-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-display);
}

/* Badges */
.badge-professional {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-blue);
    color: white;
}

.badge-accent {
    background: var(--accent-yellow);
    color: var(--gray-900);
}

.badge-success {
    background: var(--success-green);
    color: white;
}

/* Buttons */
.btn-professional {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-professional-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-professional-primary:hover {
    background: var(--primary-navy);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-professional-outline {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-professional-outline:hover {
    background: var(--primary-blue);
    color: white;
}

/* Product Images */
.product-image-professional {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: white;
    padding: 1rem;
}

.thumbnail-professional {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail-professional:hover,
.thumbnail-professional.active {
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Seller Logo */
.seller-logo-professional {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
}

/* Alert Box */
.alert-professional {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    margin-bottom: 1rem;
}

.alert-professional.info {
    background: #dbeafe;
    border-left-color: var(--primary-blue);
    color: #1e40af;
}

.alert-professional.success {
    background: var(--success-light);
    border-left-color: var(--success-green);
    color: #065f46;
}

/* Footer */
.footer-professional {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-professional a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-professional a:hover {
    color: white;
}

/* Loading Spinner */
.spinner-professional {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-value {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-primary { color: var(--primary-blue); }
.text-success { color: var(--success-green); }
.text-danger { color: var(--danger-red); }
.text-muted { color: var(--gray-600); }

.bg-primary { background-color: var(--primary-blue); }
.bg-success { background-color: var(--success-green); }
.bg-light { background-color: var(--gray-50); }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-medium { font-weight: 500; }
