/* Batumi Jobs - Clean Table Layout (jobs.ge style) */

:root {
    --primary: #4ECDC4;
    --primary-dark: #3ab5ad;
    --secondary: #1a1a2e;
    --bg: #f5f5f5;
    --white: #fff;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #ddd;
    --link: #0066cc;
    --link-hover: #004499;
    --success: #28a745;
    --warning: #ffc107;
    --font-family: Arial, 'Noto Sans Georgian', sans-serif;
}

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

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: var(--secondary);
    padding: 12px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--white);
}

.logo:hover {
    color: var(--primary);
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-telegram {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    background: #0088cc;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.nav-telegram:hover {
    background: #006699;
    text-decoration: none;
    color: var(--white);
}

.lang-switch {
    display: flex;
    gap: 2px;
}

.lang-switch a {
    padding: 4px 8px;
    color: var(--white);
    opacity: 0.7;
    font-size: 12px;
}

.lang-switch a:hover {
    opacity: 1;
    text-decoration: none;
}

.lang-switch a.active {
    opacity: 1;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

/* V2 Banner */
.v2-banner {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    padding: 12px 0;
    text-align: center;
}

.v2-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.v2-badge {
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.v2-text {
    color: white;
    font-size: 14px;
}

.v2-btn {
    background: white;
    color: #1a1a2e;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.v2-btn:hover {
    background: #1a1a2e;
    color: white;
    text-decoration: none;
}

/* Search Section */
.search-section {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    background: var(--white);
    min-width: 180px;
}

.search-btn {
    padding: 8px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

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

/* Jobs Section */
.jobs-section {
    padding: 20px 0;
}

.jobs-info {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 13px;
}

.jobs-table-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow-x: auto;
}

.jobs-table {
    width: 100%;
    border-collapse: collapse;
}

.jobs-table th {
    background: #f8f8f8;
    padding: 12px 15px;
    text-align: left;
    font-weight: normal;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.jobs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.jobs-table tr:hover {
    background: #fafafa;
}

.jobs-table tr:last-child td {
    border-bottom: none;
}

.col-title { width: 45%; }
.col-company { width: 25%; }
.col-date { width: 15%; }
.col-deadline { width: 15%; }

/* Job Row Content */
.job-title-link {
    color: var(--text);
    font-weight: normal;
    font-size: 14px;
}

.job-title-link:hover {
    color: var(--link);
}

.job-title-link.vip {
    color: #cc6600;
}

.job-location {
    color: var(--text-muted);
    font-style: italic;
    font-size: 13px;
}

.job-icons {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
}

.job-icon {
    display: inline-block;
    padding: 1px 4px;
    font-size: 10px;
    border-radius: 2px;
    text-transform: uppercase;
}

.job-icon.new {
    background: #ff6b6b;
    color: white;
}

.job-icon.salary {
    background: var(--success);
    color: white;
}

.job-company {
    color: var(--text);
    font-size: 13px;
}

.job-date {
    color: var(--text-light);
    font-size: 13px;
    white-space: nowrap;
}

/* Loading */
.loading-cell {
    text-align: center;
    padding: 40px !important;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    padding: 15px 0;
}

.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 13px;
    background: var(--white);
    color: var(--text);
}

.pagination a:hover {
    background: #f0f0f0;
    text-decoration: none;
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 20px 0;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-info {
    font-size: 13px;
    opacity: 0.8;
}

.footer-telegram {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 13px;
}

.footer-telegram:hover {
    color: var(--white);
}

/* Job Detail Page */
.job-detail {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 25px;
    margin: 20px 0;
}

.job-detail-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.job-detail-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text);
}

.job-detail-company {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.job-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 4px;
}

.job-detail-meta-item {
    display: flex;
    flex-direction: column;
}

.job-detail-meta-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.job-detail-meta-value {
    font-weight: 500;
    color: var(--text);
}

.job-body {
    line-height: 1.7;
    margin: 20px 0;
}

.job-body p {
    margin-bottom: 12px;
}

.job-source {
    padding: 15px;
    background: #f8f8f8;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-light);
}

.job-source a {
    word-break: break-all;
}

.job-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-vip {
    background: var(--warning);
    color: #000;
}

.badge-salary {
    background: var(--success);
    color: var(--white);
}

.badge-remote {
    background: var(--primary);
    color: var(--white);
}

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

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 0;
    margin-top: 15px;
    border-top: 1px solid var(--border);
}

.share-label {
    font-size: 13px;
    color: var(--text-muted);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--white);
}

.share-btn:hover {
    opacity: 0.85;
}

.share-fb { background: #1877f2; }
.share-tg { background: #0088cc; }
.share-wa { background: #25d366; }
.share-li { background: #0077b5; }
.share-copy { background: var(--text-light); }
.share-copy.copied { background: var(--success); }

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--secondary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input, .search-select {
        width: 100%;
    }

    .jobs-table th:nth-child(3),
    .jobs-table td:nth-child(3),
    .jobs-table th:nth-child(4),
    .jobs-table td:nth-child(4) {
        display: none;
    }

    .col-title { width: 60%; }
    .col-company { width: 40%; }

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

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 15px; }
