/* Import Gestalt Design System Variables */
@import 'gestalt-variables.css';

/* Global Button Styles */
.btn-primary {
    background-color: #3172ae !important;
    border-color: #3172ae !important;
}

/* Body Gradient */
body {
    background: linear-gradient(180deg, #78a6c8 0%, #e6eef3 30%, #e6eef3 100%);
    min-height: 100vh;
    padding-top: 76px;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.4rem;
    color: #2c3e50 !important;
}

.nav-link {
    color: #4a5568 !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #2d3748 !important;
}

.navbar .btn-primary {
    background-color: #3172ae;
    border: none;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

/* Auth Section Transitions */
.auth-section {
    position: relative;
    min-width: 200px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.auth-section.fade-out {
    opacity: 0;
}

.auth-section.fade-in {
    opacity: 1;
}

.auth-placeholder {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.placeholder-item {
    height: 20px;
    background: #f0f0f0;
    border-radius: 4px;
    animation: placeholder-pulse 1.5s infinite;
}

.placeholder-item:first-child {
    width: 60px;
}

.placeholder-item:last-child {
    width: 100px;
}

@keyframes placeholder-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

/* Post a Job Packaging Styles */
.package-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0.25rem;
    display: inline-block;
}

.feature-section {
    transition: all 0.3s ease;
}

.note-editor {
    margin-bottom: 1rem;
}

.required-indicator::after {
    content: "*";
    color: red;
    margin-left: 2px;
}

.package-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card.selected {
    border: 2px solid #3172ae;
    box-shadow: 0 4px 15px rgba(49,114,174,0.2);
}

/* Job Description Font Size Normalization */
.note-editable *,
.job-description * {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: inherit;
}

.note-editable h1,
.job-description h1 {
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.note-editable h2,
.job-description h2 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.875rem !important;
}

.note-editable h3,
.job-description h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
    color: #2c3e50;
}

.note-editable h4, .note-editable h5, .note-editable h6,
.job-description h4, .job-description h5, .job-description h6 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.note-editable ul, .note-editable ol,
.job-description ul, .job-description ol {
    padding-left: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.note-editable li,
.job-description li {
    margin-bottom: 0.5rem !important;
}

.note-editable p,
.job-description p {
    margin-bottom: 1rem !important;
}

/* Job Posting Page Details */
.featured-jobs-header {
    text-align: center;
    margin-bottom: 30px;
    color: #C4A484;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.featured-jobs-header .star-icon {
    color: #FFD700;
}

.job-listing {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.job-listing:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.job-listing.filled {
    opacity: 0.7;
}

.job-listing .job-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.15rem;
    margin-right: 15px;
}

.job-listing .company-name {
    color: #666;
    font-weight: 500;
}

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

.job-listing .posted-date {
    color: #888;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* This rule is consolidated into the more specific .job-listing .company-logo rule below. */

.salary-range {
    color: #28a745;
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
}

.form-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.radio-option {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
}

.radio-option:hover {
    background-color: #f8f9fa;
}

.editor-toolbar {
    border-bottom: 1px solid #dee2e6;
    padding: 8px;
    background: #f8f9fa;
}

.editor-toolbar button {
    background: none;
    border: none;
    padding: 4px 8px;
    margin-right: 8px;
    color: #6c757d;
}

.editor-toolbar button:hover {
    color: #000;
}

.btn-post {
    background-color: #3172ae;
    color: white;
    padding: 10px 40px;
    font-size: 18px;
    border-radius: 4px;
    border: none;
}

.btn-post:hover {
    background-color: #285f8f;
}

/* Job Posting Details Styles */
.job-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 2rem 0;
}

/* This is the primary style for company logos on list views like the search page */
.job-listing .company-logo {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: contain; /* Ensures aspect ratio is maintained */
    background-color: #fff; /* Provides a background for transparent logos */
    border: 1px solid #e9ecef; /* Adds a consistent border */
    padding: 4px; /* Adds some inner spacing */
}

.job-meta {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.benefit-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.apply-section {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 2rem 0;
    position: sticky;
    bottom: 0;
}

.certification-badge {
    background-color: #e9ecef;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    display: inline-block;
    font-size: 0.9rem;
}
