/* 
    MoneyTrakr Public Stylesheet
    Centralized CSS for all public-facing pages (Home, Login, Signup, etc.)
*/

:root {
    --brand-green: #5cb85c;
    --brand-dark: #343a40;
    --bs-link-color: #333333;
    --bs-link-color-rgb: 51, 51, 51;
    --bs-link-hover-color: #000000;
    --bs-link-hover-color-rgb: 0, 0, 0;
}

/* Global Public Styles */
html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    position: relative;
}

.page-wrapper {
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Scoped green links for text content */
p a, .content-link {
    color: var(--brand-green);
}
p a:hover, .content-link:hover {
    color: #4cae4c;
    text-decoration: underline;
}

/* Navbar & Brand */
.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
}
.brand-money { color: var(--brand-dark); }
.brand-trakr { color: var(--brand-green); }

@media (max-width: 991.98px) {
    .nav-login-btn {
        background-color: transparent !important;
        color: var(--brand-green) !important;
        border: 2px solid var(--brand-green) !important;
        border-radius: 50px !important;
        padding: 10px 30px !important;
        text-align: center;
        width: 100%;
        margin-bottom: 12px;
        display: block;
    }
}

/* Buttons */
.btn-brand {
    background-color: var(--brand-green);
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
}

.btn-brand:hover {
    background-color: #4cae4c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 184, 92, 0.4);
}

.btn-outline-brand {
    background-color: transparent;
    color: var(--brand-green);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid var(--brand-green);
}

.btn-outline-brand:hover {
    background-color: var(--brand-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 184, 92, 0.4);
}

#btnLivePreview.btn-outline-brand.bg-white:hover {
    color: white !important;
    background-color: #666 !important;
    border-color: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Form Placeholders */
::placeholder {
    color: #ccc !important;
    opacity: 1;
}
:-ms-input-placeholder { color: #ccc !important; }
::-ms-input-placeholder { color: #ccc !important; }

/* Footer */
.footer {
    background: #343a40;
    color: #adb5bd;
    padding: 50px 0;
}

/* Shared Background Gradients */
.public-bg-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Login, Forgot Password, Reset Password Styles */
.login-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    background-color: #ffffff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    border-radius: 20px !important;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.brand-header {
    background-color: #343a40;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* New Account Split View */
.split-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: stretch;
}

.info-side {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-side {
    padding: 60px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .info-side {
        padding: 40px 20px;
    }
    .form-side {
        padding: 40px 20px;
    }
}

/* Password Strength Meter */
.power-container {
    background-color: #2E424D;
    height: 8px;
    border-radius: 5px;
    display: none;
    margin-top: 10px;
    overflow: hidden;
}

.power-container #power-point {
    background-color: #D73F40;
    width: 1%;
    height: 100%;
    transition: 0.5s;
}

/* Intro / Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
}

.info-side .rounded-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-padding {
    padding: 100px 0;
}

/* Subtle Section Rhythms */
.bg-subtle-gradient { 
    background: linear-gradient(135deg, #ffffff 0%, #f9f9fb 100%);
}

.bg-mid-gradient {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
}

.bg-warm-light {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
}

/* High Contrast Card Overrides */
.bg-subtle-gradient .feature-card {
    background-color: #f4f5f7;
    border-color: #e9eaee;
    box-shadow: none;
}

.bg-subtle-gradient .feature-card:hover {
    background-color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.feature-card {
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid transparent; /* Placeholder for contrast */
}

/* High Contrast: Gray cards on White sections */
.bg-white .feature-card {
    background-color: #f9f9fb;
    border-color: #f1f1f4;
    box-shadow: none; /* Borders work better than shadows on gray-on-white */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background-color: white; /* Lift it back to white on hover for effect */
    border-color: #eee;
}

.feature-icon {
    font-size: 3.25rem;
    color: var(--brand-green);
    margin-bottom: 10px;
}

.pricing-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: border-color 0.3s;
}

.pricing-card.featured {
    border-color: var(--brand-green);
    background: #fff;
    z-index: 10;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 20px 0;
}

.hover-lift {
    transition: transform 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
}

/* Contact Page Specific */
.contact-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 200px);
}

.card-public {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}
