/* assets/css/style.css */
:root {
    --primary: #0446D8;
    --primary-hover: #0335A6;
    --bg: #F9FAFB;
    --surface: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --success: #10B981;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}
.logo img {
    height: 30px;
    margin-right: 10px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
}

/* App Container */
#app {
    margin-top: 2rem;
    padding-bottom: 4rem;
}
.loader {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Job Cards */
.job-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.job-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    transform: translateY(-2px);
    border-color: var(--primary);
}
.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-main);
}
.job-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.job-desc-snippet {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.job-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Job Details View */
.back-btn {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}
.job-details-container {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.job-details-desc {
    line-height: 1.7;
    margin-top: 1.5rem;
    white-space: pre-wrap;
}
.actions-bar {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.btn {
    flex: 1;
    text-align: center;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-apply {
    background: var(--primary);
    color: white;
}
.btn-apply:hover { background: var(--primary-hover); }
.btn-call {
    background: var(--success);
    color: white;
}
.btn-email {
    background: #F3F4F6;
    color: var(--text-main);
    border: 1px solid var(--border);
}
.btn-email:hover { background: #E5E7EB; }

.btn-share {
    background: #111827;
    color: white;
    cursor: pointer;
}
.btn-share:hover { background: #374151; }

/* Share Modal - Glassmorphism */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.share-modal {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.share-modal.show {
    transform: translateY(0);
}
.share-modal h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--text-main);
}
.share-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}
.share-opt {
    flex: 1 1 40%;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}
.share-whatsapp { background: #25D366; }
.share-telegram { background: #0088cc; }
.share-facebook { background: #1877F2; }
.share-twitter { background: #1DA1F2; }
.share-copy { background: var(--text-muted); flex: 1 1 100%; }
.close-modal {
    margin-top: 1.5rem;
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .nav-content {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 1.2rem;
    }
    .logo {
        flex: 1 1 auto;
        font-size: 1.1rem;
    }
    .nav-links {
        flex: 0 0 auto;
        order: 2;
    }
    .search-wrapper {
        flex: 1 1 100%;
        width: 100%;
        margin-top: 15px;
        order: 3;
        padding: 0.6rem 1.2rem;
    }
    #search-input {
        font-size: 1rem;
    }
    .actions-bar {
        flex-direction: column;
    }
}

/* Premium Text Formatting */
.spacer {
    height: 1rem;
}
.premium-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.premium-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.premium-list li::before {
    content: '👉';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}
.job-details-desc strong {
    color: var(--primary);
    font-weight: 700;
}
.job-details-desc p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Search Bar */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.4rem 1rem;
    width: 300px;
    transition: all 0.3s;
}
.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: white;
}
.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    margin-right: 8px;
}
#search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
}
#clear-search {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    margin-left: 5px;
}
#clear-search:hover { color: #ef4444; }
