/**
 * Custom Styles for Rackshare
 * Bootstrap 5 Theme Overrides and Custom Components
 */

/* ====== Variables ====== */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
}

/* ====== Base Styles ====== */
body {
    font-family: var(--font-family);
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
}

/* ====== Typography ====== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ====== Hero Section ====== */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-section h1 {
    font-size: 3rem;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* ====== Search Form ====== */
.search-form {
    border-radius: var(--border-radius);
}

/* ====== Cards ====== */
.card {
    border-radius: var(--border-radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg) !important;
}

/* ====== Pricing Cards ====== */
.pricing-card {
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.price-display {
    color: var(--primary-color);
}

/* ====== Auth Cards ====== */
.auth-card {
    border-radius: var(--border-radius);
}

.auth-card .form-control,
.auth-card .form-select {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
}

.auth-card .btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
}

/* ====== Navigation ====== */
.navbar {
    box-shadow: var(--box-shadow-sm);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* ====== Footer ====== */
footer {
    background-color: #1a1d21;
}

footer h5,
footer h6 {
    color: #fff;
}

footer p,
footer li,
footer .text-secondary {
    color: #adb5bd !important;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

footer a:hover {
    color: #fff !important;
}

.footer-link {
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: #fff !important;
    transform: translateX(3px);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-social:hover {
    background-color: var(--primary-color);
    color: #fff !important;
    transform: translateY(-3px);
}

/* ====== Buttons ====== */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
}

/* ====== Forms ====== */
.form-control,
.form-select {
    padding: 0.625rem 0.875rem;
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
    margin-bottom: 0.375rem;
}

.form-text {
    font-size: 0.875rem;
}

/* ====== Badges ====== */
.badge {
    font-weight: 500;
    padding: 0.375em 0.65em;
    border-radius: var(--border-radius);
}

/* ====== Offer Card ====== */
.offer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg) !important;
}

.offer-card .card-img-top {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* ====== Filter Sidebar ====== */
.filter-sidebar {
    border-radius: var(--border-radius);
    position: sticky;
    top: 80px;
}

/* ====== Account Sidebar ====== */
.account-sidebar .list-group-item {
    border: none;
    border-radius: var(--border-radius) !important;
    margin-bottom: 0.25rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.account-sidebar .list-group-item:hover {
    background-color: #f8f9fa;
}

.account-sidebar .list-group-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* ====== Stat Cards ====== */
.stat-card {
    border-radius: var(--border-radius);
}

/* ====== Feature Icons ====== */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== Accordion (FAQ) ====== */
.accordion-button {
    font-weight: 500;
    border-radius: var(--border-radius) !important;
    background-color: #fff;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-body {
    line-height: 1.7;
}

/* ====== Pagination ====== */
.pagination .page-link {
    border: none;
    border-radius: var(--border-radius);
    margin: 0 0.125rem;
    color: #212529;
    padding: 0.5rem 0.875rem;
}

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

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

/* ====== Empty State ====== */
.empty-state {
    padding: 3rem 1rem;
}

/* ====== Buttons with Icons ====== */
.btn svg {
    vertical-align: -0.125em;
}

/* ====== Progress Steps ====== */
.create-progress .progress {
    border-radius: 1rem;
}

.create-progress .progress-bar {
    background-color: var(--primary-color);
    border-radius: 1rem;
}

/* ====== Utility Classes ====== */
.shadow-sm {
    box-shadow: var(--box-shadow-sm) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

/* ====== Animations ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .filter-sidebar {
        position: static;
    }
}

/* ====== Print Styles ====== */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
}

