/* Custom CSS for MOMBERGER Marketplace */

:root {
    /* MOMBERGER Brand Colors - Original Orange Design */
    --momberger-primary: #ff6b35;
    --momberger-secondary: #e65a2b;
    --momberger-accent: #ffa366;
    --momberger-light-orange: #fff3f0;
    --momberger-dark-orange: #cc4820;
    --momberger-gray: #f5f7fa;
    --momberger-dark-gray: #4a5568;
    
    /* System Colors */
    --primary-color: var(--momberger-primary);
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
}

/* Navigation Styles */
.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

.navbar-brand img {
    margin-right: 10px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Bike Card Specific Styles */
.bike-card .card-body {
    padding: 1.5rem;
}

.bike-details {
    font-size: 0.9rem;
}

.pricing {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 0.75rem;
}

.seller-info {
    background-color: rgba(255, 107, 53, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.1);
}

.alert-danger {
    border-left-color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
}

.alert-warning {
    border-left-color: var(--warning-color);
    background-color: rgba(255, 193, 7, 0.1);
}

.alert-info {
    border-left-color: var(--info-color);
    background-color: rgba(13, 202, 240, 0.1);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color) !important;
}

footer a {
    color: #adb5bd !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--momberger-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Filter Section */
.filter-section {
    background-color: var(--light-color);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.filter-section h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Marketplace Grid */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .marketplace-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
}

/* Loading Animations */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Price Display */
.price-display {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-rrp {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Status Badges */
.status-active {
    background-color: var(--success-color);
}

.status-sold {
    background-color: var(--danger-color);
}

.status-pending {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

/* Authentication Pages */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--momberger-light-orange) 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.1);
    border: none;
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.auth-header {
    background: var(--momberger-primary);
    color: white;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.auth-header::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 10px solid var(--momberger-primary);
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.auth-header p {
    opacity: 0.9;
    margin: 0;
    font-size: 0.95rem;
}

.auth-body {
    padding: 2.5rem 2rem 2rem;
}

.auth-form .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: var(--momberger-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

.auth-form .form-label {
    font-weight: 600;
    color: var(--momberger-dark-gray);
    margin-bottom: 0.5rem;
}

.auth-submit {
    background: var(--momberger-primary);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-submit:hover {
    background: var(--momberger-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.auth-footer {
    text-align: center;
    padding: 1.5rem 2rem 2rem;
    background: var(--momberger-gray);
    border-top: 1px solid #e2e8f0;
}

.auth-footer a {
    color: var(--momberger-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--momberger-secondary);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--momberger-dark-gray);
    font-size: 0.875rem;
}

.auth-social-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-social-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: var(--momberger-dark-gray);
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-social-btn:hover {
    border-color: var(--momberger-primary);
    color: var(--momberger-primary);
    transform: translateY(-1px);
}

.momberger-logo-auth {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

/* Search Form */
.search-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-form .form-control {
    margin-bottom: 1rem;
}

/* Contact Info */
.contact-info {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
}

.contact-info h5 {
    color: white;
    margin-bottom: 1rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Benefits Section */
.benefits-section .benefit-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.benefits-section .benefit-card:hover {
    background-color: white !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Image Placeholders */
.img-placeholder {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 3rem;
}

/* Table Styles */
.table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table td {
    border-color: rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

/* Pagination */
.pagination .page-link {
    border-radius: 10px;
    margin: 0 2px;
    border: none;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--light-color);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--light-color);
}

/* Profile Section */
.profile-card {
    background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Approval Status */
.approval-pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.approval-approved {
    background: linear-gradient(135deg, #d1edff 0%, #a7e3ff 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}