/**
 * MAIN STYLESHEET - assets/css/style.css
 */

:root {
    --primary: #DC143C;
    --primary-dark: #B71C1C;
    --accent: #FF6B95;
    --text-dark: #1a1a1a;
    --text-light: #6a6a6a;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER
======================================== */

.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo span:first-child {
    font-size: 1.5rem;
}

.header-nav {
    display: flex;
    gap: 2.5rem;
    flex: 1;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220,20,60,0.3);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-light);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   MAIN CONTENT
======================================== */

.main-content {
    margin: 3rem 0;
}

.job-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.job-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.job-header {
    padding: 2.5rem;
    background: linear-gradient(135deg, #fff5f8 0%, #fef2f2 100%);
    border-bottom: 1px solid var(--border);
}

.job-header-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.job-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.job-logo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.2rem;
    flex-shrink: 0;
}

.job-info {
    flex: 1;
}

.job-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.employer {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.rating i {
    color: #F59E0B;
    font-size: 0.9rem;
}

.rating-value {
    font-weight: 700;
    color: var(--text-dark);
}

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

.job-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary);
    font-size: 1rem;
}

.job-body {
    padding: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
    color: var(--text-dark);
}

.job-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ========================================
   SIMILAR JOBS
======================================== */

.similar-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.similar-jobs {
    display: grid;
    gap: 1.5rem;
}

.similar-job {
    padding: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: var(--transition);
}

.similar-job:hover {
    background: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.similar-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.similar-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.similar-info {
    flex: 1;
    min-width: 0;
}

.similar-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.similar-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.similar-title a:hover {
    color: var(--primary);
}

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

/* ========================================
   SIDEBAR
======================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.sidebar-card .btn {
    width: 100%;
    margin-bottom: 1rem;
}

/* ========================================
   PREFOOTER
======================================== */

.prefooter {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    padding: 4rem 0;
    margin: 4rem 0 0 0;
    border-top: 1px solid var(--border);
}

.prefooter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.prefooter-col {
    text-align: center;
}

.prefooter-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.prefooter-col h3 i {
    color: var(--primary);
    font-size: 1.5rem;
}

.prefooter-col p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ========================================
   FOOTER
======================================== */

.main-footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #111827 100%);
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {
    .job-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .header-nav {
        order: 3;
        width: 100%;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .job-header-content {
        flex-direction: column;
        text-align: center;
    }

    .job-info h1 {
        font-size: 1.8rem;
    }

    .job-meta {
        justify-content: center;
        gap: 1rem;
    }

    .similar-job {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .prefooter-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .job-info h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.2rem;
    }
}
