/* =====================================================
   Business Directory India - Yellow Pages
   Custom Styles
   ===================================================== */

:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fef3c7;
    --secondary: #1e293b;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--secondary);
    background: var(--light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar a {
    color: #94a3b8;
}
.top-bar a:hover {
    color: var(--primary);
}

/* Navbar */
.navbar {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--dark);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--secondary);
    padding: 8px 16px !important;
    border-radius: 8px;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-dark);
    background: var(--primary-light);
}

.btn-warning {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--primary-dark), #b45309);
    color: white;
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e3a5f 100%);
    padding: 70px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f59e0b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    color: #94a3b8;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Search Box */
.search-box {
    background: white;
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.search-box .form-control,
.search-box .form-select {
    border: none;
    box-shadow: none;
    font-size: 0.95rem;
    padding: 12px 16px;
    background: transparent;
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    box-shadow: none;
}

.search-box .btn-search {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.search-box .btn-search:hover {
    background: linear-gradient(135deg, var(--primary-dark), #b45309);
    color: white;
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-item span {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Section Common */
.section-padding {
    padding: 60px 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--gray);
    margin-bottom: 40px;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: var(--primary-dark);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.category-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.category-card p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

/* Business Cards */
.business-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.business-card .card-img-top {
    height: 160px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.business-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-card .badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.business-card .badge-verified {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.business-card .card-body {
    padding: 20px;
}

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

.business-card .card-title a {
    color: inherit;
}

.business-card .card-title a:hover {
    color: var(--primary-dark);
}

.business-meta {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.business-meta i {
    color: var(--primary);
    margin-right: 4px;
}

.business-card .card-text {
    font-size: 0.9rem;
    color: var(--gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Requirement Cards */
.requirement-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    transition: var(--transition);
    height: 100%;
}

.requirement-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.requirement-card .req-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.req-meta {
    font-size: 0.85rem;
    color: var(--gray);
}

.req-meta span {
    margin-right: 15px;
}

.req-budget {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Forms */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto;
}

.auth-header {
    background: linear-gradient(135deg, var(--dark), #1e3a5f);
    padding: 30px;
    text-align: center;
    color: white;
}

.auth-header h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.auth-header p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.95rem;
}

.auth-body {
    padding: 30px;
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.input-group-text {
    background: var(--light);
    border: 1.5px solid var(--border);
    border-radius: 10px 0 0 10px;
    color: var(--gray);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    width: 100%;
    font-size: 1rem;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), #b45309);
    color: white;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 40px 0;
    color: white;
}

.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.breadcrumb {
    margin: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: #94a3b8;
}

/* Filters */
.filter-sidebar {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 60px 0 25px;
    margin-top: 60px;
}

.footer-title {
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 3px;
}

.social-links a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    margin-right: 8px;
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 30px 0 20px;
}

.copyright {
    font-size: 0.9rem;
}

.footer-bottom-link {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-left: 20px;
}

.footer-bottom-link:hover {
    color: var(--primary);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border: 1px solid var(--border);
    color: var(--secondary);
    font-weight: 500;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        gap: 25px;
    }
    
    .stat-item h3 {
        font-size: 1.4rem;
    }
    
    .search-box {
        padding: 15px;
    }
    
    .search-box .row > div {
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Badge styles */
.badge-category {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--border);
    margin-bottom: 20px;
}

.empty-state h4 {
    color: var(--gray);
}
