/* Global CSS variables are now defined in the SiteSettings ViewComponent */
/* These override the default Ranch & Wrangler theme colors */

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
}

html {
    position: relative;
    min-height: 100%;
}

body {
    color: var(--text-color);
    background-color: var(--background-color);
    font-family: 'Source Sans Pro', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-style: normal;
    color: var(--primary-color);
}

/* Form controls and inputs */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--accent-color);
}

.form-control {
    border: 1px solid rgba(0,0,0,0.1);
    background-color: rgba(255,255,255,0.9);
}

/* Homepage Logo & Brand Styling */
.brand-logo {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    color: var(--primary-color) !important;
}

/* Button styling */
.btn {
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-width: 2px;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--light-text-color);
    }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-text-color);
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color);
}

    .btn-secondary:hover, .btn-secondary:focus {
        background-color: var(--secondary-color);
        filter: brightness(115%);
        border-color: var(--secondary-color);
    }

.btn-accent, .btn-success {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--light-text-color);
}

.btn-outline-light {
    border-width: 2px;
}

.btn-accent:hover, .btn-success:hover,
.btn-accent:focus, .btn-success:focus {
    background-color: var(--accent-color);
    filter: brightness(115%);
    border-color: var(--accent-color);
}

/* Card and element styling */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background-color: rgba(255,255,255,0.95);
}

.card-header, .modal-header {
    background-color: var(--primary-color) !important;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

    .card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5,
    .modal-header h1, .modal-header h2, .modal-header h3, .modal-header h4, .modal-header h5 {
        color: #ffffff;
    }

    .card-header.bg-primary {
        background-color: var(--primary-color) !important;
        color: var(--light-text-color);
    }

.bg-primary {
    background-color: var(--primary-color) !important;
}

.card-body {
    padding: 1.5rem;
}

/* Text styling */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s;
}

    a:hover {
        color: var(--accent-color);
        text-decoration: underline;
    }

.accent-link {
    color: var(--highlight-color);
    font-weight: 600;
}

    .accent-link:hover {
        color: var(--highlight-color);
    }

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s;
}

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        color: var(--primary-color);
        background-color: rgba(0,0,0,0.03);
    }

/* Footer */
.footer {
    background-color: var(--footer-background-color);
    color: var(--light-text-color) !important;
    border-top: 4px solid var(--accent-color) !important;
    padding: 3rem 0 1.5rem;
}

    .footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6{
        color: var(--secondary-color);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }

    .footer p {
        color: var(--light-text-color);
        opacity: 0.8;
    }

    .footer a {
        color: var(--secondary-color);
    }

        .footer a:hover {
            color: var(--highlight-color);
            text-decoration: none;
        }

.social-icons a {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--secondary-color);
    transition: all 0.3s;
}

    .social-icons a:hover {
        color: var(--highlight-color);
        transform: translateY(-3px);
    }

.footer-links {
    list-style: none;
    padding-left: 0;
}

    .footer-links li {
        margin-bottom: 0.75rem;
    }

.footer-bottom {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Hero Section Styling */
.hero-section {
    position: relative;
    width: 100%;
    background-image: url('/images/banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    border-bottom: 4px solid var(--accent-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    max-width: 900px;
}

.hero-section .brand-logo {
    color: white !important;
    font-size: 4.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    font-size: 1.7rem;
}

.tag-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: var(--text-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

/* Feature Section Styling */

.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.9);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.8;
}

/* Section styling */
.section-title {
    position: relative;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--highlight-color);
    margin: 0 auto 1.5rem;
}

.section-subtitle {
    color: var(--text-color);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.8;
}

/* Job Listings Styling */
.job-listings-container {
    padding: 1rem;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.job-card {
    background-color: rgba(255,255,255,0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

    .job-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

.job-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.job-card-body {
    padding: 1.5rem;
}

.job-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.job-company {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.job-location {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

    .job-location i {
        margin-right: 0.5rem;
        color: var(--secondary-color);
    }

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.job-tag {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.job-salary {
    font-weight: 700;
    color: var(--highlight-color);
    font-size: 1.2rem;
}

/* Empty state styling */
.empty-state {
    background-color: rgba(255,255,255,0.9);
    border-radius: 8px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* State-based search container */
.state-search-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.95);
}

    .state-search-container .form-control,
    .state-search-container .form-select {
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0.6rem 0.75rem;
        height: 45px;
    }

    .state-search-container .form-select {
        background-color: #fff;
        cursor: pointer;
    }

        .state-search-container .form-select:focus,
        .state-search-container .form-control:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 0.2rem rgba(125, 73, 49, 0.15);
        }

    .state-search-container .input-group-text {
        background-color: #f8f8f8;
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: var(--primary-color);
    }

/* Responsive styles */
@media (max-width: 768px) {
    .shero-section {
        height: 500px;
    }

    .hero-section .brand-logo {
        font-size: 3rem;
    }

    .hero-section .lead {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .shero-section {
        height: 450px;
    }

    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    .hero-section .brand-logo {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }
}

/* Subscription section styles */
.subscription-section {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

    .subscription-section h3 {
        color: var(--primary-color);
        font-weight: 700;
        margin-bottom: 1rem;
    }

.subscription-input-group {
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

    .subscription-input-group .form-control {
        border: 1px solid rgba(0,0,0,0.1);
        padding: 0.8rem 1.2rem;
        height: auto;
        border-radius: 4px 0 0 4px;
    }

    .subscription-input-group .btn {
        border-radius: 0 4px 4px 0;
        padding: 0.8rem 1.8rem;
    }

.subscription-form .form-text {
    display: block;
    margin-top: 0.5rem;
}

@media (max-width: 576px) {
    .subscription-input-group {
        flex-direction: column;
    }

        .subscription-input-group .form-control,
        .subscription-input-group .btn {
            border-radius: 4px;
            width: 100%;
            margin: 0.25rem 0;
        }
}
