/* ============================================
   DFW BizPro Networking - Custom Styles
   Enterprise-grade, Silicon Valley aesthetic
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --transition: all 0.2s ease;
}

/* ============ Base ============ */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text);
}

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

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

img { max-width: 100%; height: auto; }

/* ============ Navbar ============ */
.navbar {
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95) !important;
    z-index: 1050;
}

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

.brand-icon-sm {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
}

.brand-sub {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--bg);
}

/* ============ Hero ============ */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
    padding: 5rem 0 4rem;
    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='%23ffffff' fill-opacity='0.04'%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");
}

.hero-section .container { position: relative; z-index: 1; }

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-section { padding: 3rem 0 2.5rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
}

/* ============ Cards ============ */
.card-custom {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card-custom:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-custom .card-body { padding: 1.5rem; }

/* Benefit Cards */
.benefit-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.benefit-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============ Section Styles ============ */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

/* ============ Member/Directory Cards ============ */
.member-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

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

.member-card-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 2px solid var(--border);
    background: white;
    flex-shrink: 0;
}

.member-card-logo-sm {
    width: 56px;
    height: 56px;
    border-radius: 12px;
}

.badge-featured {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #78350f;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.badge-category {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    background: rgba(37,99,235,0.08);
    color: var(--primary);
}

/* Directory expandable */
.directory-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}

.directory-item:hover {
    border-color: rgba(37,99,235,0.3);
    box-shadow: var(--shadow-md);
}

.directory-item-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.directory-item-header:hover { background: var(--bg); }

.directory-item-body {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    background: var(--bg);
    display: none;
}

.directory-item.active .directory-item-body { display: block; }

.directory-item .expand-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.directory-item.active .expand-icon {
    transform: rotate(180deg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.info-item {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
}

.info-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.info-item-value {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

/* ============ Events ============ */
.event-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.event-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.event-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.event-card-image i {
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
}

.event-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 60px;
}

.event-date-badge .month {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.event-date-badge .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

/* ============ Buttons ============ */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
    padding: 0.55rem 1.25rem;
    transition: var(--transition);
}

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

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
    padding: 0.55rem 1.25rem;
}

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

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    color: #78350f;
    font-weight: 700;
    border-radius: var(--radius);
    padding: 0.6rem 1.5rem;
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #78350f;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius);
}

/* ============ Forms ============ */
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============ Stats ============ */
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============ Auth Pages ============ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border);
}

/* ============ Admin Sidebar ============ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    color: white;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1040;
    transition: transform 0.3s ease;
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    background: var(--bg);
    min-height: 100vh;
}

.sidebar-brand {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1rem;
}

.sidebar-nav { padding: 0 0.75rem; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: rgba(255,255,255,0.6);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 0.15rem;
}

.sidebar-link:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

.sidebar-link.active {
    color: white;
    background: var(--primary);
}

.sidebar-link i { width: 20px; text-align: center; font-size: 0.9rem; }

.sidebar-divider {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 0.75rem 1.5rem;
}

.sidebar-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* ============ CTA Section ============ */
.cta-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-radius: var(--radius-2xl);
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* ============ Tables ============ */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: var(--bg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    padding: 0.75rem 1rem;
}

.table-modern tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.table-modern tbody tr:hover { background: var(--bg); }

/* ============ Status Badges ============ */
.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-approved, .status-active, .status-published { background: #d1fae5; color: #065f46; }
.status-rejected, .status-suspended, .status-cancelled { background: #fee2e2; color: #991b1b; }
.status-draft { background: #e2e8f0; color: #475569; }

/* ============ Footer ============ */
.site-footer {
    background: linear-gradient(180deg, #0f172a, #020617);
    color: white;
    margin-top: auto;
}

.footer-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    text-decoration: none;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-links li {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover { color: white; }

.text-primary-light { color: var(--primary-light) !important; }

/* ============ Page Headers ============ */
.page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::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='%23ffffff' fill-opacity='0.04'%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");
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ============ Pagination ============ */
.pagination .page-link {
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius) !important;
    margin: 0 0.15rem;
}

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

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

/* ============ Coming Soon ============ */
.coming-soon-card {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 2px dashed var(--border);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    text-align: center;
}

.coming-soon-card i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ============ Misc ============ */
.text-accent { color: var(--accent) !important; }
.bg-accent { background: var(--accent) !important; }

.logo-upload-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg);
}

.logo-upload-preview:hover {
    border-color: var(--primary);
    background: rgba(37,99,235,0.04);
}

.logo-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ============ Responsive Admin ============ */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1039;
        display: none;
    }

    .sidebar-overlay.show { display: block; }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============ Scrollbar ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ============ Member Dashboard Cards ============ */
.dashboard-welcome {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-radius: var(--radius-2xl);
    padding: 2rem 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* ============ Search ============ */
.search-container {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
