/* ============================================
   SLATKO.RS - Main Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #c9184a;
    --primary-dark: #a4133c;
    --primary-light: #ff4d6d;
    --secondary: #d4a373;
    --secondary-light: #e9c9a8;
    --accent: #ffd166;
    --dark: #1a1a2e;
    --text: #2d2d2d;
    --text-muted: #6c757d;
    --bg-light: #f8f4f0;
    --bg-cream: #fdf6ec;
    --success: #2d6a4f;
    --warning: #e9c46a;
    --danger: #e63946;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ---------- Base Styles ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background-color: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ---------- Brand ---------- */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    font-size: 1.8rem;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
}

/* Logo image (pink logo on light backgrounds) */
.brand-logo {
    display: block;
    height: 40px;
    width: auto;
}

/* Cream logo variant for dark backgrounds (footer, admin sidebar) */
.brand-logo--footer {
    height: 44px;
}

@media (max-width: 575.98px) {
    .brand-logo {
        height: 32px;
    }
    .brand-logo--footer {
        height: 38px;
    }
}

/* ---------- Navbar ---------- */
.navbar {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary);
    background-color: rgba(201, 24, 74, 0.05);
}

.search-nav-form {
    width: 400px;
}

.search-nav-form .form-control {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border-color: #e0e0e0;
    padding: 0.5rem 1rem;
}

.search-nav-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* ---------- Buttons ---------- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 24, 74, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--border-radius);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* ---------- Cards ---------- */
.card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-img-top {
    border-radius: 0;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e8e8e8;
    padding: 0.7rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 24, 74, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.4rem;
}

/* ---------- Badges ---------- */
.badge {
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.badge-primary {
    background-color: var(--primary);
    color: white;
}

.badge-success {
    background-color: var(--success);
    color: white;
}

.badge-warning {
    background-color: var(--warning);
    color: var(--dark);
}

/* ---------- Hero Section ---------- */
.hero-section {
    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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,176C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
}

.hero-search {
    position: relative;
    z-index: 1;
}

/* ---------- Rating ---------- */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.rating .text-warning {
    font-size: 0.9rem;
}

/* ---------- Steps ---------- */
.step-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
}

/* ---------- Category Cards ---------- */
.category-card {
    background: white;
    border: 2px solid transparent;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary);
}

.category-icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* ---------- City Cards ---------- */
.city-card {
    background: white;
    border: 2px solid transparent;
    cursor: pointer;
}

.city-card:hover {
    border-color: var(--secondary);
}

/* ---------- Business Profile ---------- */
.business-header {
    position: relative;
}

.business-cover {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.business-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    background: white;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-top: -60px;
    position: relative;
    z-index: 1;
}

.business-info {
    padding: 1rem 0;
}

/* ---------- Product Card ---------- */
.product-card .card-img-top {
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top img {
    transform: scale(1.05);
}

.product-card .card-img-top {
    overflow: hidden;
}

/* ---------- Inquiry Form ---------- */
.inquiry-form {
    background: var(--bg-cream);
    border-radius: var(--border-radius);
    padding: 2rem;
}

/* ---------- Dashboard ---------- */
.dashboard-sidebar {
    background: var(--dark);
    min-height: 100vh;
    padding: 2rem 0;
}

.dashboard-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    transition: var(--transition);
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

.dashboard-sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- Tables ---------- */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    background-color: var(--bg-light);
    border-bottom: 2px solid #e8e8e8;
    font-weight: 600;
    color: var(--text);
}

.table tbody td {
    vertical-align: middle;
}

/* ---------- Status Badges ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-new { background: #e3f2fd; color: #1976d2; }
.status-viewed { background: #f3e5f5; color: #7b1fa2; }
.status-quoted { background: #fff3e0; color: #f57c00; }
.status-accepted { background: #e8f5e9; color: #2e7d32; }
.status-rejected { background: #ffebee; color: #c62828; }
.status-pending { background: #fff3e0; color: #f57c00; }
.status-confirmed { background: #e8f5e9; color: #2e7d32; }
.status-completed { background: #e0f2f1; color: #00695c; }
.status-cancelled { background: #ffebee; color: #c62828; }

/* ---------- Calendar ---------- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day.available { background: #e8f5e9; color: #2e7d32; }
.calendar-day.limited { background: #fff3e0; color: #f57c00; }
.calendar-day.booked { background: #ffebee; color: #c62828; }
.calendar-day.empty { background: transparent; }

.calendar-day:hover {
    transform: scale(1.1);
}

/* ---------- Review Card ---------- */
.review-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.review-card .review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.review-card .review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
}

/* ---------- Inspiration Grid ---------- */
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.inspiration-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.inspiration-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.inspiration-item:hover img {
    transform: scale(1.05);
}

.inspiration-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.inspiration-item:hover .overlay {
    transform: translateY(0);
}

/* ---------- Search Results ---------- */
.search-filters {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h6 {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ---------- Pagination ---------- */
.pagination .page-link {
    border-radius: var(--border-radius);
    margin: 0 3px;
    border: none;
    color: var(--text);
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--dark) !important;
}

.footer a:hover {
    opacity: 1 !important;
    color: var(--primary-light) !important;
}

/* ---------- Utilities ---------- */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: var(--shadow-md) !important;
}

.object-fit-cover {
    object-fit: cover;
}

/* ---------- Loading Spinner ---------- */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-search {
        padding: 1.5rem !important;
    }
    
    .search-nav-form {
        width: 100%;
        margin-top: 1rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .business-cover {
        height: 200px;
    }
    
    .business-logo {
        width: 80px;
        height: 80px;
        margin-top: -40px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        padding: 3rem 0 !important;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-hover:hover {
    animation: pulse 0.3s ease;
}

/* ---------- Print Styles ---------- */
@media print {
    .navbar, .footer, .btn, form {
        display: none !important;
    }
}

/* Cookie choices */
.cookie-consent[hidden] { display: none !important; }
.cookie-consent {
    position: fixed;
    z-index: 1080;
    inset: auto 1rem 1rem;
    max-width: 1060px;
    margin-inline: auto;
    padding: 1.25rem 1.5rem;
    color: #212529;
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: .75rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.2);
}
.cookie-consent__content { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cookie-consent__actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; flex-shrink: 0; }
.cookie-consent a { color: var(--bs-primary, #0d6efd); }
.legal-company-details { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .75rem 0; }
.legal-company-details dt { font-weight: 600; }
.legal-company-details dd { margin: 0; }
@media (max-width: 700px) {
    .cookie-consent { inset: auto .5rem .5rem; padding: 1rem; }
    .cookie-consent__content { display: block; }
    .cookie-consent__actions { justify-content: flex-start; margin-top: .75rem; }
}