/*
 * BidWiser - Custom CSS
 * AI-Powered eBay Listing Analysis
 */

:root {
    /* Colors from logo concept - two-tone blue shield */
    --primary-color: #4A8BC2;
    --primary-dark: #2D5B8A;
    --primary-light: #6BA3D4;
    --accent-color: #5A9BD4;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    /* Background grays from logo */
    --bg-gray: #8B9AAD;
    --bg-gray-light: #9FAAB8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    position: relative;
}

/* Top gradient bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color), var(--primary-color));
    z-index: 1031;
}

/* Navbar */
.navbar {
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 15px 0;
    margin-top: 4px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand .brand-icon {
    margin-right: 12px;
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand .brand-name {
    font-weight: 700;
    font-size: 2.4rem;
    color: var(--primary-dark);
}

.navbar-brand .brand-tagline {
    font-weight: 500;
    font-size: 1.1rem;
    color: #64748b;
    letter-spacing: 0.3px;
}

.nav-link {
    font-weight: 500;
    color: #333;
    margin-left: 8px;
    margin-right: 8px;
}

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

/* Offset for sticky navbar when clicking anchor links */
section[id] {
    scroll-margin-top: 220px;
}

/* Hero section - gradient matching logo concept */
.hero-section {
    padding: 10px 0;
    margin-top: 0;
    margin-bottom: 0;
    background:
        linear-gradient(135deg, #969EAD 0%, #8A929F 40%, #7E8694 70%, #747C8A 100%);
    position: relative;
    overflow: hidden;
}

.hero-text {
    padding: 0;
    margin: 0;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    margin-top: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-text .lead {
    color: #f0f4f8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero-text .text-muted {
    color: #e0e8f0 !important;
}

.hero-illustration {
    padding: 0;
}

.shield-container {
    animation: float 3s ease-in-out infinite;
}

.hero-logo {
    filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.15));
    max-width: 750px;
    width: 100%;
    height: auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section alternating flat colors - slate palette */
#features {
    background: #e0e8e4;
    border-top: 1px solid #c8d4d0;
    border-bottom: 1px solid #c8d4d0;
}

section.py-5:not(#features):not(#screenshots):not(#faq) {
    background: #ece8f0;
    border-top: 1px solid #dcd4e0;
    border-bottom: 1px solid #dcd4e0;
}

#screenshots {
    background: #e8ecf4;
    border-top: 1px solid #d0d8e8;
    border-bottom: 1px solid #d0d8e8;
}

#faq {
    background: #f0ece8;
    border-top: 1px solid #e0d8d0;
    border-bottom: 1px solid #e0d8d0;
}

/* Feature cards */
.feature-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Steps */
.step-item {
    align-items: flex-start;
}

.step-circle {
    min-width: 48px;
    margin-right: 20px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.step-content p {
    margin-bottom: 0;
    color: #666;
}

/* Score preview */
.score-preview {
    border: 2px solid #e0e0e0;
}

.score-box {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
}

/* Screenshots */
.screenshot-placeholder {
    background: #d8e0ec;
    border-radius: 12px;
    padding: 80px 20px;
    text-align: center;
    border: 2px dashed #b8c8dc;
}

/* FAQ Accordion */
.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.accordion-button {
    font-weight: 600;
    background: #fff;
    padding: 18px 24px;
}

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

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 20px 24px 24px;
}

.accordion-body h5 {
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.accordion-body ul.row {
    list-style: none;
    padding-left: 0;
}

.accordion-body ul.row li {
    padding: 3px 0;
    padding-left: 15px;
    position: relative;
}

.accordion-body ul.row li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* CTA Section */
.cta-section {
    background: #d4dce6 !important;
    border-top: 1px solid #c0cad6;
    padding: 80px 0 60px !important;
    color: #1e293b;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.cta-section .lead {
    color: #475569;
}

.cta-section .card {
    border: 1px solid #b8c4d4;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #fff;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 10px 24px;
}

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 10px 24px;
}

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

/* Hero section outline button - needs to be visible on gray bg */
.hero-section .btn-outline-primary {
    color: #fff;
    border-color: #fff;
    background: transparent;
}

.hero-section .btn-outline-primary:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

/* Footer */
footer.footer {
    background-color: #1e293b !important;
    color: #fff !important;
    padding: 70px 0 50px !important;
    margin-top: 0 !important;
}

footer.footer .row {
    margin-bottom: 20px;
}

footer.footer h5 {
    color: #fff !important;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

footer.footer p {
    color: rgba(255,255,255,0.9) !important;
    line-height: 1.7;
    margin-bottom: 15px;
}

footer.footer a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    transition: color 0.2s;
}

footer.footer a:hover {
    color: #fff !important;
    text-decoration: underline;
}

footer.footer ul {
    padding-left: 0;
}

footer.footer ul li {
    margin-bottom: 12px;
    list-style: none;
}

footer.footer hr {
    border-color: rgba(255,255,255,0.2) !important;
    margin: 30px 0 !important;
}

footer.footer .text-muted {
    color: rgba(255,255,255,0.6) !important;
}

.footer hr {
    border-color: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 20px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
