/* Princeton Jobs Custom Styles - Match Blazor Design */

/* ================================================
   FRONT PAGE (Job Browse Layout) STYLES
   ================================================ */

/* Job Browse Layout Styles */
.job-browse-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Mobile Filters */
.mobile-filters {
    display: none;
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 60px; /* Positioned below the navbar */
    z-index: 999;
}

.mobile-filters-container {
    display: flex;
    gap: 0.75rem;
    padding: 0 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.mobile-filters-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.mobile-filter-dropdown {
    flex-shrink: 0;
    min-width: 120px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.2s;
}

.mobile-filter-dropdown:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.mobile-filter-clear {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.mobile-filter-clear:hover {
    background-color: #5a6268;
}

/* Main Content Layout */
.job-browse-content {
    flex: 1;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    gap: 2rem;
    width: 100%;
}

/* Compact Filter Sidebar */
.filter-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 80px; /* Position below the navbar (60px) with some spacing */
    align-self: flex-start; /* Prevent stretching to full height */
    max-height: calc(100vh - 100px); /* Limit height to viewport minus top offset */
    overflow-y: auto; /* Allow scrolling within the sidebar if content is too tall */
}

.filter-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.filter-section h3 {
    margin: 0 0 1.25rem 0;
    color: #333;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

/* Compact Filter Groups */
.filter-group.compact {
    margin-bottom: 1rem;
}

.filter-group.compact label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filter-dropdown {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Compact Filter Actions */
.filter-actions.compact {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.filter-actions.compact .btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-clear {
    background-color: #6c757d;
    color: white;
}

.btn-clear:hover {
    background-color: #5a6268;
}

.btn-apply {
    background-color: #007bff;
    color: white;
}

.btn-apply:hover {
    background-color: #0056b3;
}

/* Job Content Area */
.job-content {
    flex: 1;
    min-width: 0;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.job-header h1,
.job-header h2 {
    margin: 0;
    color: #333;
}

.job-count {
    color: #666;
    font-size: 0.9rem;
}

/* Job Cards Container */
.job-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Job Card Styling - Matching Blazor Design */
.job-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.job-title {
    color: #2c3e50;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.job-title a {
    color: #2c3e50;
    text-decoration: none;
}

.job-title a:hover {
    color: #3498db;
    text-decoration: none;
}

.job-type {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.job-company {
    color: #34495e;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.job-sector {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.job-description {
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.job-description p {
    margin: 0;
}

.job-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.job-salary {
    color: #27ae60;
    font-weight: 600;
}

.job-location {
    color: #7f8c8d;
}

.job-actions {
    display: flex;
    gap: 0.75rem;
}

.job-actions .btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    flex: 1;
    text-decoration: none;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    color: white;
}

.btn-secondary {
    background-color: #ecf0f1;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.btn-secondary:hover {
    background-color: #d5dbdb;
    color: #2c3e50;
}

/* Mobile Responsive Design for Front Page */
@media (max-width: 768px) {
    .mobile-filters {
        display: block;
    }
    
    .job-browse-content {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .filter-sidebar {
        display: none;
    }
    
    .job-content {
        width: 100%;
    }
    
    .job-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .job-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .job-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .mobile-filter-dropdown {
        min-width: 100px;
        font-size: 0.85rem;
    }
}

/* Hide job title from excerpt descriptions */
.job-description h1 {
    display: none;
}

/* ================================================
   JOB DETAILS PAGE STYLES (single-job_posting.php)
   ================================================ */

/* Job Details Page - Match Blazor Design */
.job-details-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.job-details-content {
    flex: 1;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 10rem 0;
    gap: 2rem;
}

.job-details-content .job-content {
    flex: 1;
    min-width: 0;
}

/* Enhanced Job Card Styling for Details Page */
.job-details-page .job-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    padding: 1.65rem 2rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.2s;
}

.job-details-page .job-card:hover {
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.15);
}

.job-details-page .job-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.4rem;
}

/* ================================================
   WORDPRESS NAVIGATION STYLING
   ================================================ */

/* WordPress Navigation - Match Blazor Design */
#main-nav,
#wrapper-navbar {
    background-color: #2c3e50 !important;
    padding: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#main-nav .navbar-brand,
#wrapper-navbar .navbar-brand {
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

#main-nav .navbar-brand:hover,
#wrapper-navbar .navbar-brand:hover {
    color: #ecf0f1 !important;
}

#main-nav .navbar-nav,
#wrapper-navbar .navbar-nav {
    margin-left: auto;
}

#main-nav .nav-link,
#wrapper-navbar .nav-link {
    color: white !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.25rem !important;
    transition: background-color 0.2s !important;
}

#main-nav .nav-link:hover,
#wrapper-navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    text-decoration: none !important;
}

#main-nav .account-link,
#wrapper-navbar .account-link {
    color: white !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.25rem !important;
    transition: background-color 0.2s !important;
}

#main-nav .account-link:hover,
#wrapper-navbar .account-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Container styling for navigation */
#main-nav .container,
#wrapper-navbar .container,
#main-nav .container-fluid,
#wrapper-navbar .container-fluid {
    padding: 1rem 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
    #main-nav .container,
    #wrapper-navbar .container,
    #main-nav .container-fluid,
    #wrapper-navbar .container-fluid {
        padding: 1rem !important;
    }
    
    #main-nav .navbar-brand,
    #wrapper-navbar .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    #main-nav .account-link,
    #wrapper-navbar .account-link {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* ================================================
   LEGACY STYLES (keeping for compatibility)
   ================================================ */

/* Style WordPress Navigation to Match Blazor Design */
#wrapper-navbar {
    background-color: #2c3e50 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#main-nav {
    background-color: #2c3e50 !important;
    padding: 0;
}

#main-nav .container {
    max-width: 1200px;
    padding: 1rem 2rem;
}

#main-nav .navbar-brand {
    color: white !important;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

#main-nav .navbar-brand:hover {
    color: #ecf0f1 !important;
    text-decoration: none;
}

/* Hide the hamburger menu button since we're keeping it simple */
#main-nav .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

/* Style any navigation links that might be added */
#main-nav .navbar-nav .nav-link {
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

#main-nav .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
}

/* Style the account link specifically */
#main-nav .navbar-nav .account-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Make sure login/logout appears on the right */
#main-nav .navbar-nav .ms-auto {
    margin-left: auto !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    #main-nav .container {
        padding: 1rem;
    }
    
    #main-nav .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Top Navigation Styling */
.top-navbar {
    background-color: #2c3e50;
    color: white;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.navbar-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-brand a:hover {
    color: #ecf0f1;
    text-decoration: none;
}

.account-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.account-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

/* Job Details Page Styling */
.job-details-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.job-details-content {
    flex: 1;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0 10rem 0;
    gap: 2rem;
}

.job-content {
    flex: 1;
    min-width: 0;
}

/* Job Card Styling - Matches Blazor Design */
.job-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    padding: 1.65rem 2rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.2s;
}

.job-card:hover {
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.15);
}

.job-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.4rem;
}

/* Job Header Styling */
.job-header-content {
    margin-bottom: 1.5rem;
}

.job-header-content h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.job-company-location {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.job-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.job-badges .badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Job Details Grid */
.job-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.job-detail-item {
    margin-bottom: 1rem;
}

.job-detail-item strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Job Description Styling */
.job-description-content {
    color: #2c3e50;
    line-height: 1.6;
}

.job-description-content p {
    margin-bottom: 1rem;
}

.job-description-content ul,
.job-description-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.job-description-content li {
    margin-bottom: 0.5rem;
}

.job-description-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Job Information Sidebar */
.job-info-sidebar .job-detail-item {
    margin-bottom: 1rem;
}

.job-detail-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.job-detail-value {
    color: #2c3e50;
    font-weight: 500;
}

/* Apply Button Styling */
.job-apply-section {
    margin-top: 1.5rem;
}

.btn-apply-now {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-apply-now:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Back Button */
.btn-back {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: white;
    text-decoration: none;
}

/* Icons */
.bi {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-details-content {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .navbar-content {
        padding: 1rem;
    }
    
    .job-card {
        padding: 1.25rem 1.5rem;
    }
    
    .job-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .navbar-brand a {
        font-size: 1.2rem;
    }
    
    .account-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .job-header-content h1 {
        font-size: 1.5rem;
    }
    
    .job-badges {
        flex-wrap: wrap;
    }
}

/* Archive/Listing Page Specific Styles */
.job-listings .job-card {
    margin-bottom: 1.5rem;
}

.job-listing-item .card-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
}

.job-listing-item .card-title a:hover {
    color: #007bff;
    text-decoration: none;
}

.job-listing-item .card-subtitle {
    color: #6c757d;
    font-weight: 500;
}

.job-meta-preview {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.job-meta-preview .text-muted {
    font-size: 0.875rem;
    font-weight: 500;
}

.job-meta-preview .badge {
    background-color: #007bff !important;
    color: white;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Front Page Specific Styles */
.front-page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.front-page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.front-page-header .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.job-count {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* No Jobs Found Styling */
.no-jobs-found {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.no-jobs-found h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.no-jobs-found .lead {
    color: #6c757d;
    margin-bottom: 2rem;
}
