/**
 * Custom styles for the Job Board application
 */

/* General styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
}

.nav-link.btn {
    padding: 0.25rem 0.75rem;
    margin-top: 0.125rem;
}

/* Forms */
.form-label {
    font-weight: 500;
}

.form-text {
    font-size: 0.85rem;
}

.required-field::after {
    content: "*";
    color: #dc3545;
    margin-left: 0.25rem;
}

/* Map styles */
.map-container {
    height: 400px;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.distance-label {
    background: none;
    border: none;
    box-shadow: none;
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

/* Dashboard stats */
.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-card {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #0d6efd;
}

.stat-card p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Application cards */
.application-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Privacy level indicators */
.privacy-level {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.privacy-level-exact {
    background-color: #dc3545;
}

.privacy-level-neighborhood {
    background-color: #fd7e14;
}

.privacy-level-city {
    background-color: #ffc107;
}

.privacy-level-region {
    background-color: #198754;
}

/* Resume viewer */
.resume-container {
    height: 600px;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
}

.resume-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Cover letter */
.cover-letter-content {
    white-space: pre-line;
    font-family: 'Georgia', serif;
    line-height: 1.6;
}

/* Application answers */
.application-answers-content {
    white-space: pre-line;
    line-height: 1.6;
}

/* Subscription cards */
.subscription-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subscription-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.subscription-card .card-header {
    font-weight: 700;
}

.subscription-card .price {
    font-size: 2.5rem;
    font-weight: 700;
}

.subscription-card .price-period {
    font-size: 1rem;
    color: #6c757d;
}

/* Footer */
footer {
    margin-top: auto;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .dashboard-stats {
        flex-direction: column;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .resume-container {
        height: 400px;
    }
}

/* Cookie consent styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    transition: all 0.3s ease-in-out;
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-consent:not(.show) {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}

.cookie-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-content h5 {
    margin-bottom: 0.5rem;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-category {
    margin-bottom: 1.5rem;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-description {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Responsive adjustments for cookie consent */
@media (max-width: 767.98px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .cookie-consent {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .card {
        border: none !important;
    }
    
    .card-header, .card-footer {
        background-color: transparent !important;
    }
}

/* Hero section with background image */
.hero-bg-section {
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../public/images/hero-large.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-bg-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive background images */
@media (max-width: 1200px) {
    .hero-bg-image {
        background-image: url('../public/images/hero-medium.jpg');
    }
}

@media (max-width: 768px) {
    .hero-bg-image {
        background-image: url('../public/images/hero-small.jpg');
    }
}
