/* DataCenterCareers.com — Job Board Styles */

:root {
    --primary: #0066ff;
    --primary-dark: #0044cc;
    --secondary: #1a1a2e;
    --accent: #00d4ff;
    --bg: #f5f6fa;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --featured: #fef3c7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
.header {
    background: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #0f172a 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 32px;
}

.search-bar {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    flex: 1;
    min-width: 200px;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

.search-btn {
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.hero-stats {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #94a3b8;
}

.hero-stats span {
    color: var(--accent);
    font-weight: 700;
}

/* Jobs Section */
.jobs-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--card-bg);
    cursor: pointer;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.job-card.featured {
    border-color: var(--warning);
    background: linear-gradient(to right, var(--featured) 0%, var(--card-bg) 30%);
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.job-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.job-info {
    flex: 1;
}

.job-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.job-company {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.job-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-salary {
    color: var(--success);
    font-weight: 600;
}

.job-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.job-tag {
    background: #eff6ff;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.job-tag.featured-tag {
    background: var(--warning);
    color: #fff;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Employers Section */
.employers-section {
    background: var(--card-bg);
    padding: 60px 20px;
    text-align: center;
}

.employers-section h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.employers-section > p {
    color: var(--text-light);
    margin-bottom: 40px;
}

.pricing-cards {
    display: flex;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    width: 300px;
    text-align: left;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.badge {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
}

.price-period {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-card li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Alerts Section */
.alerts-section {
    background: var(--secondary);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.alerts-section h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.alerts-section > p {
    color: #94a3b8;
    margin-bottom: 24px;
}

.alert-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.alert-form .btn-primary {
    width: auto;
    padding: 12px 28px;
}

/* Resources */
.resources-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.resources-section h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.resource-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}

.resource-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.resource-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.resource-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-section a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .pricing-card.featured {
        transform: none;
    }
    .filters {
        flex-direction: column;
    }
}

/* Job Detail Modal */
.job-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.job-modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.job-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.job-modal-close:hover {
    color: var(--text);
}

.job-detail-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.job-detail-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.job-detail-header h2 {
    font-size: 1.4rem;
    margin: 0 0 4px 0;
}

.job-detail-company {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.job-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-light);
}

.job-detail-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.job-detail-description h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.job-detail-description p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.job-detail-apply {
    margin-top: 24px;
    text-align: center;
}

.btn-apply {
    display: inline-block;
    width: auto;
    padding: 14px 48px;
    font-size: 1.1rem;
    text-decoration: none;
    text-align: center;
}

/* Alert Message */
.alert-message {
    max-width: 600px;
    margin: 12px auto 0;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.alert-message.success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-message.info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
