/* WindSpot Custom Theme Override
 * Overrides Start Bootstrap New Age template with WindSpot branding
 */

:root {
    --ws-primary-bg: #0A1628;
    --ws-secondary-bg: #132240;
    --ws-card-bg: #1A2E4A;
    --ws-primary-text: #FFFFFF;
    --ws-secondary-text: #B0BEC5;
    --ws-accent: #00BCD4;
    --ws-accent-dark: #00ACC1;
    --ws-divider: #263238;
    --ws-wind-calm: #87CEEB;
    --ws-wind-light: #4CAF50;
    --ws-wind-moderate: #FF9800;
    --ws-wind-strong: #F44336;
}

/* === Global === */
body {
    background-color: var(--ws-primary-bg);
    color: var(--ws-primary-text);
}

.text-muted {
    color: var(--ws-secondary-text) !important;
}

/* === Navbar === */
#mainNav {
    background-color: var(--ws-primary-bg) !important;
    border-bottom: 1px solid var(--ws-divider);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

#mainNav .navbar-brand {
    color: var(--ws-primary-text) !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

#mainNav .navbar-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

#mainNav .nav-link {
    color: var(--ws-secondary-text) !important;
    transition: color 0.2s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--ws-accent) !important;
}

#mainNav .navbar-toggler {
    color: var(--ws-secondary-text);
    border-color: var(--ws-divider);
}

#mainNav.navbar-shrink {
    background-color: var(--ws-primary-bg) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4) !important;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
}

.lang-switcher a {
    color: var(--ws-secondary-text);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-switcher a:hover {
    color: var(--ws-accent);
}

.lang-switcher a.active {
    color: var(--ws-primary-text);
    background-color: var(--ws-accent);
}

.lang-switcher .sep {
    color: var(--ws-divider);
    font-size: 0.7rem;
}

/* === Gradient Override === */
.bg-gradient-primary-to-secondary {
    background: linear-gradient(135deg, var(--ws-accent) 0%, #0097A7 100%) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--ws-accent) 0%, #0097A7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-start-color {
    stop-color: var(--ws-accent) !important;
}

.gradient-end-color {
    stop-color: #0097A7 !important;
}

/* SVG shapes */
.masthead-device-mockup .shape-1 rect,
.features-device-mockup .shape-1 rect {
    fill: var(--ws-accent);
    opacity: 0.15;
}

.masthead-device-mockup .shape-2 circle,
.features-device-mockup .shape-2 circle {
    fill: var(--ws-accent);
    opacity: 0.1;
}

/* === Masthead === */
.masthead {
    background: linear-gradient(180deg, var(--ws-primary-bg) 0%, var(--ws-secondary-bg) 100%);
    padding-top: 8rem;
}

.masthead h1 {
    color: var(--ws-primary-text);
}

.masthead .lead {
    color: var(--ws-secondary-text) !important;
}

/* === Buttons === */
.btn-primary {
    background-color: var(--ws-accent) !important;
    border-color: var(--ws-accent) !important;
    color: var(--ws-primary-text) !important;
}

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

.btn-outline-light {
    border-color: var(--ws-primary-text) !important;
    color: var(--ws-primary-text) !important;
}

.btn-outline-light:hover {
    background-color: var(--ws-primary-text) !important;
    color: var(--ws-primary-bg) !important;
}

/* === Features Section === */
#features {
    background-color: var(--ws-primary-bg);
}

#features h3 {
    color: var(--ws-primary-text);
}

#features p {
    color: var(--ws-secondary-text) !important;
}

.icon-feature {
    font-size: 3rem;
}

/* === Quote / Aside === */
aside.text-center {
    padding: 4rem 0;
}

/* === CTA Section === */
.cta {
    background: linear-gradient(135deg, var(--ws-secondary-bg) 0%, var(--ws-primary-bg) 100%);
}

/* === Pricing Section === */
#pricing {
    background-color: var(--ws-secondary-bg);
    padding: 5rem 0;
}

#pricing h2 {
    color: var(--ws-primary-text);
    margin-bottom: 3rem;
}

.pricing-card {
    background-color: var(--ws-card-bg);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--ws-divider);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 188, 212, 0.15);
}

.pricing-card.featured {
    border-color: var(--ws-accent);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ws-accent);
    color: var(--ws-primary-text);
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    color: var(--ws-primary-text);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ws-accent);
    margin: 1rem 0;
}

.pricing-price .period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--ws-secondary-text);
}

.pricing-price .alt-price {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ws-secondary-text);
    margin-top: 4px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--ws-secondary-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li i {
    color: var(--ws-accent);
    font-size: 1rem;
}

.pricing-features li.disabled {
    opacity: 0.4;
    text-decoration: line-through;
}

/* === Attribution Section === */
#attribution {
    background-color: var(--ws-primary-bg);
    padding: 3rem 0;
    border-top: 1px solid var(--ws-divider);
    border-bottom: 1px solid var(--ws-divider);
}

#attribution p {
    color: var(--ws-secondary-text);
}

#attribution a {
    color: var(--ws-accent);
}

/* === Footer === */
footer {
    background-color: var(--ws-primary-bg) !important;
    border-top: 1px solid var(--ws-divider);
}

footer a {
    color: var(--ws-secondary-text) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--ws-accent) !important;
}

/* === Download Section === */
#download {
    padding: 5rem 0;
}

/* === Device Mockup Screen === */
.device .screen img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 12px;
        justify-content: center;
    }

    #mainNav .navbar-collapse {
        background-color: var(--ws-primary-bg);
        padding: 16px;
        border-radius: 0 0 12px 12px;
    }
}

@media (max-width: 575.98px) {
    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .masthead h1 {
        font-size: 2rem;
    }
}

/* === bg-light override === */
.bg-light {
    background-color: var(--ws-secondary-bg) !important;
}

.bg-light h2,
.bg-light p {
    color: var(--ws-primary-text);
}

.bg-light .text-muted {
    color: var(--ws-secondary-text) !important;
}

/* === Misc === */
.font-alt {
    font-family: 'Mulish', sans-serif;
}

.app-badge {
    height: 48px;
}
