/* TruePros Local Custom Styles */

:root {
    /* Professional Tradespeople Color Palette */
    --hm-primary: #2c5aa0;          /* Professional blue - trust, reliability */
    --hm-secondary: #5a6c7d;        /* Steel gray - industry, professionalism */
    --hm-accent: #e67e22;           /* Construction orange - action, energy */
    --hm-success: #27ae60;          /* Professional green - success, completion */
    --hm-danger: #c0392b;           /* Alert red - warnings, errors */
    --hm-warning: #f39c12;          /* Caution yellow - attention, pricing */
    --hm-info: #3498db;             /* Information blue - helpful info */
    --hm-light: #f8f9fa;           /* Clean light gray background */
    --hm-dark: #2c3e50;            /* Dark charcoal for text */
    
    /* Professional accent colors */
    --hm-gold: #d4af37;            /* Premium gold for highlights */
    --hm-silver: #95a5a6;          /* Silver for secondary elements */
    
    /* Custom spacing */
    --hm-border-radius: 0.375rem;
    --hm-shadow: 0 2px 8px rgba(44, 90, 160, 0.08);
    --hm-shadow-hover: 0 4px 16px rgba(44, 90, 160, 0.12);
    
    /* Typography */
    --hm-font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Global Styles */
body {
    font-family: var(--hm-font-family);
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-light);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

/* PROFESSIONAL COLOR SYSTEM */

/* Navigation */
.navbar.bg-primary {
    background: #2c5aa0 !important;
    box-shadow: 0 2px 4px rgba(44, 90, 160, 0.15);
}

.navbar .navbar-brand,
.navbar-nav .nav-link {
    color: #ffffff !important;
}

.navbar-nav .nav-link:hover {
    color: #e3f2fd !important;
}

/* Ensure perfect vertical alignment in navigation */
.navbar-brand {
    display: flex !important;
    align-items: center !important;
}

.navbar-nav {
    align-items: center !important;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem !important;
}

/* Buttons */
.btn-primary {
    background: #2c5aa0;
    border-color: #2c5aa0;
    color: #ffffff;
}

.btn-primary:hover {
    background: #245088;
    border-color: #245088;
    color: #ffffff;
}

.btn-secondary {
    background: #5a6c7d;
    border-color: #5a6c7d;
    color: #ffffff;
}

.btn-success {
    background: #27ae60;
    border-color: #27ae60;
    color: #ffffff;
}

.btn-warning {
    background: #e67e22;
    border-color: #e67e22;
    color: #ffffff;
}

.btn-warning:hover {
    background: #d35400;
    border-color: #d35400;
    color: #ffffff;
}

.btn-outline-primary {
    border-color: #2c5aa0;
    color: #2c5aa0;
}

.btn-outline-primary:hover {
    background: #2c5aa0;
    border-color: #2c5aa0;
    color: #ffffff;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.btn-outline-secondary {
    border-color: #5a6c7d;
    color: #5a6c7d;
}

.btn-outline-secondary:hover {
    background: #5a6c7d;
    border-color: #5a6c7d;
    color: #ffffff;
}

/* Backgrounds */
.bg-light {
    background-color: #f8f9fa !important;
    color: #2c3e50 !important;
}

.bg-white {
    background-color: #ffffff !important;
    color: #2c3e50 !important;
}

.bg-primary {
    background-color: #2c5aa0 !important;
    color: #ffffff !important;
}

.bg-secondary {
    background-color: #5a6c7d !important;
    color: #ffffff !important;
}

.bg-success {
    background-color: #27ae60 !important;
    color: #ffffff !important;
}

.bg-warning {
    background-color: #e67e22 !important;
    color: #ffffff !important;
}

/* Text Colors */
.text-primary {
    color: #2c5aa0 !important;
}

.text-secondary {
    color: #5a6c7d !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-success {
    color: #27ae60 !important;
}

.text-warning {
    color: #f39c12 !important;
}

.text-danger {
    color: #c0392b !important;
}

/* Cards */
.card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: #2c3e50;
    transition: box-shadow 0.2s ease;
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f2f5;
    color: #2c3e50;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    color: #ffffff;
    min-height: 45vh;
    padding: 3rem 0;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p,
.hero-section .lead {
    color: #ffffff !important;
}

/* Badges */
.badge.bg-primary {
    background-color: #2c5aa0 !important;
    color: #ffffff;
}

.badge.bg-secondary {
    background-color: #5a6c7d !important;
    color: #ffffff;
}

.badge.bg-success {
    background-color: #27ae60 !important;
    color: #ffffff;
}

.badge.bg-warning {
    background-color: #e67e22 !important;
    color: #ffffff;
}

.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #2c3e50;
    border: 1px solid #e9ecef;
}

/* Forms */
.form-control {
    border: 1px solid #e9ecef;
    color: #2c3e50;
    background-color: #ffffff;
}

.form-control:focus {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.15);
    background-color: #ffffff;
    color: #2c3e50;
}

.form-select {
    border: 1px solid #e9ecef;
    color: #2c3e50;
    background-color: #ffffff;
}

/* Footer */
footer {
    background: #2c3e50 !important;
    color: #ffffff !important;
}

footer a {
    color: #bdc3c7 !important;
}

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

/* Alerts */
.alert-primary {
    background-color: rgba(44, 90, 160, 0.1);
    border-color: rgba(44, 90, 160, 0.2);
    color: #2c5aa0;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.alert-danger {
    background-color: rgba(192, 57, 43, 0.1);
    border-color: rgba(192, 57, 43, 0.2);
    color: #c0392b;
}

/* Utility Classes */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Simplified spacing */
section {
    padding: 2rem 0;
}

.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Search and Filter Components */
.search-filters {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Professional Profile Components */
.pro-hero {
    background: #ffffff;
}

.hero-bg {
    min-height: 60px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
}

.pro-logo {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pro-logo-placeholder {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
    border: 2px solid #ffffff;
}

/* Contact Panel Styling */
.contact-panel {
    position: sticky;
    top: 20px;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Rating Stars */
.rating .fas.fa-star.text-warning {
    color: #ffc107 !important;
}

.rating .fas.fa-star.text-muted {
    color: #dee2e6 !important;
}

/* Business Hours */
.hours-list {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 40vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .contact-panel {
        position: static;
        margin-top: 2rem;
    }
    
    .pro-logo,
    .pro-logo-placeholder {
        width: 60px;
        height: 60px;
    }
}

/* Ensure proper contrast and readability */
.text-dark {
    color: #2c3e50 !important;
}

.text-light {
    color: #f8f9fa !important;
}

/* Clean up any remaining problematic styles */
.bg-dark {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
}

/* Icon styling */
.fa, .fas, .fab {
    color: inherit;
}

/* Make sure all sections have proper backgrounds */
section {
    background: #ffffff;
    color: #2c3e50;
}

section.bg-light {
    background: #f8f9fa !important;
    color: #2c3e50 !important;
}

/* Dropdown menus */
.dropdown-menu {
    background: #ffffff;
    border: 1px solid #e9ecef;
    color: #2c3e50;
}

.dropdown-item {
    color: #2c3e50;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

/* Tables */
.table {
    color: #2c3e50;
    background: #ffffff;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(248, 249, 250, 0.5);
}

/* Modal */
.modal-content {
    background: #ffffff;
    color: #2c3e50;
    border: 1px solid #e9ecef;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}

/* Professional Profile Improvements */
.pro-profile section {
    margin-bottom: 2rem;
}

.pro-profile .card {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Clean badge styling */
.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 500;
    border: 1px solid #e9ecef !important;
    padding: 0.5rem 0.75rem;
}

/* Verification Badge Enhancement */
.verified-professional {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    border: none !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.verified-professional i {
    color: white !important;
}

/* Cleaner spacing */
.mb-5 {
    margin-bottom: 2rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}