/**
 * Styles Interface Client - Catalogue Maymana
 */

:root {
    --gold: #D4AF37;
    --dark-gold: #B4941F;
    --light-gold: #F4E4B7;
    --dark: #2C2416;
    --light: #F8F9FA;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Header */
.header-gold {
    background: linear-gradient(135deg, var(--dark) 0%, #4A3F2E 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--gold) !important;
    transition: all 0.3s;
}

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

.navbar-brand i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.brand-text {
    font-weight: 600;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.input-group-text {
    background: var(--light-gold);
    border: 2px solid var(--gold);
    color: var(--dark-gold);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    color: white;
}

/* Catalogue Section */
.catalogue-section {
    padding: 40px 0 60px;
}

.materiel-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
    position: relative;
}

.materiel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.materiel-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
}

.materiel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.materiel-card:hover .materiel-image img {
    transform: scale(1.1);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ccc;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.card-category {
    font-size: 0.9rem;
    color: var(--dark-gold);
    margin-bottom: 15px;
}

.card-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.stock-info .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    font-weight: 600;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
}

/* Footer */
.footer-gold {
    background: linear-gradient(135deg, var(--dark) 0%, #4A3F2E 100%);
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-gold p {
    color: var(--light-gold);
    font-size: 1rem;
}

.footer-gold i {
    color: var(--gold);
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .materiel-image {
        height: 200px;
    }
}
