/* ============================================
   PushAdBid - Premium Light Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #2563eb;
    --primary-light: #dbeafe;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #06b6d4;
    --info-light: #cffafe;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --body-bg: #f8fafc;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--body-bg);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Navbar --- */
#mainNav {
    transition: all 0.3s ease;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

#mainNav.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.navbar-brand {
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-light);
}

/* --- Main Content Offset --- */
.main-content {
    padding-top: 80px;
}

/* --- Hero Section --- */
.hero-section {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    min-height: 90vh;
}

.hero-section h1 {
    color: var(--dark);
    letter-spacing: -1px;
}

.hero-section .lead {
    font-size: 1.15rem;
    max-width: 520px;
}

/* --- Dashboard Preview --- */
.dashboard-preview {
    border: 1px solid #e2e8f0;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.stat-card {
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

/* --- Audience Cards --- */
.audience-card {
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1) !important;
    border-color: var(--primary-light);
}

.icon-box {
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
}

/* --- Feature Cards --- */
.feature-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-light);
}

.feature-card i {
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.15);
}

/* --- Stats Section --- */
.stat-item h3 {
    font-size: 2.5rem;
    letter-spacing: -1px;
}

/* --- CTA Box --- */
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%) !important;
}

/* --- Footer --- */
.footer {
    background-color: #0f172a !important;
}

.footer a {
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--white) !important;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* --- Responsive Design --- */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 40px 0 60px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .main-content {
        padding-top: 70px;
    }

    .nav-link {
        padding: 10px 0 !important;
    }

    .navbar-nav .btn {
        margin-top: 8px;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.65rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .cta-box {
        padding: 30px 20px !important;
    }
}

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Selection Color --- */
::selection {
    background-color: var(--primary);
    color: var(--white);
}

/* ============================================
   PushAdBid — Premium Flash Messages
   ============================================ */

.pb-flash {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
    animation: pbFlashIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pbFlashIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Colored left accent bar */
.pb-flash::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
}

/* ---- Icon ---- */
.pb-flash-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.pb-flash-icon i {
    font-weight: 700;
}

/* ---- Body ---- */
.pb-flash-body {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.pb-flash-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -0.1px;
}

.pb-flash-message {
    font-size: 13.5px;
    line-height: 1.55;
    color: #4b5563;
}

.pb-flash-message a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* ---- Close button ---- */
.pb-flash-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.pb-flash-close i {
    font-size: 13px;
    font-weight: 700;
}

.pb-flash-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

/* ============ Variants ============ */

/* ---- Success ---- */
.flash-success {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}
.flash-success::before {
    background: #10b981;
}
.flash-success .pb-flash-icon {
    background: #dcfce7;
    color: #10b981;
}
.flash-success .pb-flash-title {
    color: #065f46;
}

/* ---- Error ---- */
.flash-error {
    border-color: #fecaca;
    background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}
.flash-error::before {
    background: #ef4444;
}
.flash-error .pb-flash-icon {
    background: #fee2e2;
    color: #ef4444;
}
.flash-error .pb-flash-title {
    color: #991b1b;
}

/* ---- Warning ---- */
.flash-warning {
    border-color: #fde68a;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}
.flash-warning::before {
    background: #f59e0b;
}
.flash-warning .pb-flash-icon {
    background: #fef3c7;
    color: #d97706;
}
.flash-warning .pb-flash-title {
    color: #92400e;
}

/* ---- Info ---- */
.flash-info {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}
.flash-info::before {
    background: #2563eb;
}
.flash-info .pb-flash-icon {
    background: #dbeafe;
    color: #2563eb;
}
.flash-info .pb-flash-title {
    color: #1e40af;
}

/* ---- Mobile ---- */
@media (max-width: 575.98px) {
    .pb-flash {
        padding: 14px 14px;
        gap: 12px;
        border-radius: 12px;
    }
    .pb-flash-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .pb-flash-title {
        font-size: 13px;
    }
    .pb-flash-message {
        font-size: 13px;
    }
}

/* ============================================================
   Premium Toast Notifications
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.pb-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.1px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25),
                0 4px 12px rgba(15, 23, 42, 0.15);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90vw;
}

.pb-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.pb-toast.hide {
    opacity: 0;
    transform: translateY(20px);
}

/* ---- Icon ---- */
.pb-toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.pb-toast-icon i {
    color: #ffffff;
    font-weight: 700;
}

/* ---- Message ---- */
.pb-toast-message {
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ Variants ============ */
.pb-toast.toast-success .pb-toast-icon {
    background: #10b981;
}
.pb-toast.toast-success {
    /* Dark bg stays — icon green */
}

.pb-toast.toast-error .pb-toast-icon {
    background: #ef4444;
}

.pb-toast.toast-warning .pb-toast-icon {
    background: #f59e0b;
}

.pb-toast.toast-info .pb-toast-icon {
    background: #2563eb;
}

/* ---- Mobile ---- */
@media (max-width: 575.98px) {
    .toast-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
        transform: none;
    }
    .pb-toast {
        padding: 11px 16px;
        font-size: 13px;
        max-width: 100%;
    }
    .pb-toast-message {
        white-space: normal;
    }
}