/* ============================================
   ID Loker Aggregator - Frontend Styles
   ============================================ */

.id-loker-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Search Section */
.id-loker-search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.id-loker-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
}

.id-loker-search-form {
    width: 100%;
}

.id-loker-search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.id-loker-search-field {
    flex: 1;
    min-width: 200px;
}

.id-loker-search-field input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.id-loker-search-field input[type="text"]:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.id-loker-search-btn {
    width: 100%;
    padding: 12px 24px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.id-loker-search-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.id-loker-search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Filters */
.id-loker-filters {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.id-loker-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.id-loker-filter-group label {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.id-loker-filter-group select {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

/* Results Section */
.id-loker-results-section {
    margin-top: 20px;
}

.id-loker-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.id-loker-results-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.id-loker-results-count {
    color: #666;
    font-size: 14px;
}

/* Loading */
.id-loker-loading {
    text-align: center;
    padding: 40px;
}

.id-loker-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: id-loker-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes id-loker-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.id-loker-loading p {
    color: #666;
    font-size: 14px;
}

/* Job Cards - List Layout */
.id-loker-layout-list .id-loker-job-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.id-loker-layout-list .id-loker-job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Job Cards - Grid Layout */
.id-loker-layout-grid {
    display: grid;
    gap: 20px;
}

.id-loker-layout-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.id-loker-layout-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.id-loker-layout-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.id-loker-layout-grid .id-loker-job-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.id-loker-layout-grid .id-loker-job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Job Card Header */
.id-loker-job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.id-loker-job-source-badge {
    background: #667eea;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.id-loker-job-type-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Job Card Body */
.id-loker-job-body {
    flex: 1;
}

.id-loker-job-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.id-loker-job-company,
.id-loker-job-location,
.id-loker-job-salary,
.id-loker-job-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

.id-loker-icon {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.id-loker-job-salary {
    color: #2e7d32;
    font-weight: 600;
}

.id-loker-job-description {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Job Card Footer */
.id-loker-job-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.id-loker-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.id-loker-apply-btn:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    transform: translateY(-1px);
    color: #fff;
}

.id-loker-external-icon {
    font-size: 12px;
}

.id-loker-source-link {
    font-size: 12px;
    color: #999;
}

/* No Results */
.id-loker-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.id-loker-no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.id-loker-no-results h4 {
    font-size: 18px;
    color: #333;
    margin: 0 0 10px 0;
}

.id-loker-no-results p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Error */
.id-loker-error {
    text-align: center;
    padding: 40px 20px;
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
}

.id-loker-error-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.id-loker-error h4 {
    font-size: 18px;
    color: #c62828;
    margin: 0 0 10px 0;
}

.id-loker-error-message {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Simple Search */
.id-loker-simple-search {
    margin: 20px 0;
}

.id-loker-simple-search-form {
    display: flex;
    gap: 10px;
}

.id-loker-simple-search-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.id-loker-simple-search-form input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.id-loker-simple-search-form button {
    padding: 12px 24px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.id-loker-simple-search-form button:hover {
    background: #5a6fd6;
}

/* Responsive */
@media (max-width: 768px) {
    .id-loker-search-row {
        flex-direction: column;
    }

    .id-loker-search-field {
        min-width: 100%;
    }

    .id-loker-filters {
        flex-direction: column;
    }

    .id-loker-layout-grid[data-columns="2"],
    .id-loker-layout-grid[data-columns="3"],
    .id-loker-layout-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }

    .id-loker-job-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .id-loker-apply-btn {
        text-align: center;
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .id-loker-layout-grid[data-columns="3"],
    .id-loker-layout-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}
