/* style.css */
/* Basic page styling using Montserrat */
:root {
    --bg-color: #111;
    --primary-text: #fff;
    --secondary-text: #ccc;
    --accent-color: #1f73b7;
    --hover-bg: #333;
    --modal-bg: #fff;
    --modal-text: #333;
}
html,
body,
button,
input,
select,
textarea {
    font-family: "Montserrat", sans-serif !important;
}
body {
    background-color: #ffffff; /* White background */
    color: #333; /* Dark gray text for contrast */
    font-family: "Montserrat", sans-serif; /* Or whichever font you use */
    margin: 0;
    padding: 0;
}
.modal {
    background-color: var(--modal-bg);
    color: var(--modal-text);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: url("../assets/pictures/hero-bg.webp") center/cover no-repeat;
    text-align: center;
    color: #fff; /* Light text for better contrast against dark overlay */
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    overflow: hidden; /* Ensures the pseudo-element doesn't overflow */
}

/* Pseudo-element for the gradient and blur overlay */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0; /* Fill the entire hero section */
    /* Dark gradient + blurred background overlay */
    background: linear-gradient(
        to bottom right,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.3)
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); /* For Safari support */
    z-index: 0;
}

/* Place your hero content above the overlay */
.hero-section .hero-content {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #1f73b7;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}
.cta-button:hover {
    background: #155685;
}

/* Featured Products */
.featured-products {
    text-align: center;
    margin: 2rem;
}
.featured-products h2 {
    margin-bottom: 1rem;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.product-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 220px;
    padding: 1rem;
    text-align: center;
}
.product-item img {
    max-width: 100%;
    height: auto;
}
.product-item h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
}
/* Was #ff6600. Nothing else on the site is orange, and no other stylesheet overrode
   this, so featured-product buttons rendered in a colour that belonged to no palette.
   Uses the shared brand token with a literal fallback for pages that predate it. */
.view-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--ui-brand, #2563eb);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 0.5rem;
}

/* Info Section */
.info-section {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.info-section h2 {
    margin-bottom: 1rem;
}
.info-section p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* FOOTER
   The dark #111 here disagreed with nav.css (#f7f7f9) and unified_theme.css
   (transparent) for the same selector; unified_theme won only because it loads last and
   uses !important. Aligned to the light theme so the cascade order stops mattering. */
.site-footer {
    background-color: var(--ui-surface-soft, #f8fafc);
    color: var(--ui-muted, #6b7280);
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}
.footer-content {
    max-width: 800px;
    margin: 0 auto;
}
.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0;
}
.footer-links li {
    margin: 0 1rem;
}
.footer-links a {
    color: var(--ui-muted, #6b7280);
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}

/* AUTH MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    max-width: 400px;
    width: 90%;
    padding: 1.5rem;
    border-radius: 4px;
    position: relative;
}
.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    font-weight: bold;
}
.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}
.auth-tabs span {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0;
    cursor: pointer;
    font-weight: 500;
}
.auth-tabs span.active {
    border-bottom: 2px solid #333;
}
.auth-forms .form-content {
    display: none;
}
.auth-forms .form-content.active {
    display: block;
}
.auth-forms form input,
.auth-forms form textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem;
    box-sizing: border-box;
}
.auth-forms form button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: #1f73b7;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

/* Show overlay when triggered via JS */
.modal-overlay.show {
    display: flex;
}

.password-strength {
    margin: 0.5rem 0;
}

.strength-bar {
    height: 5px;
    width: 100%;
    background: #eee;
    border-radius: 3px;
    margin: 5px 0;
}

.strength-bar.weak {
    background: #ff4444;
}
.strength-bar.medium {
    background: #ffc107;
}
.strength-bar.strong {
    background: #00c851;
}

.strength-text {
    font-size: 0.8rem;
    color: #666;
}

.error-message {
    color: #ff4444;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ff4444;
    border-radius: 4px;
    background: #ffe6e6;
}
/* Add any of your other custom styles or overrides here... */


    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal Box */

    padding: 2rem;
    width: 100%;
    max-width: 400px;
    position: relative;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-tabs span {
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.auth-tabs span.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Auth Forms */
.auth-forms {
    position: relative;
    min-height: 300px; /* Adjust based on form height */
}

.form-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.form-content.active {
    opacity: 1;
    visibility: visible;
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

/* Password Strength */
.password-strength {
    margin: 0.5rem 0;
}

.strength-bar {
    height: 5px;
    width: 100%;
    background: #eee;
    border-radius: 3px;
    margin: 5px 0;
}

.strength-bar.weak {
    background: #ff4444;
}
.strength-bar.medium {
    background: #ffc107;
}
.strength-bar.strong {
    background: #00c851;
}

.strength-text {
    font-size: 0.8rem;
    color: #666;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
}

.google-btn {
    background: #db4437;
    margin-top: 1rem;
}

.google-btn:hover {
    background: #c23325;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    margin-top: 1rem;
    text-align: center;
}

/* Error Messages */
.error-message {
    color: #ff4444;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ff4444;
    border-radius: 4px;
    background: #ffe6e6;
}
