/* salary-styles.css */
.salary-directory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.salary-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.salary-hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.salary-search-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.search-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.salary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-item h3 {
    font-size: 2em;
    color: #4CAF50;
    margin-bottom: 5px;
}

.salary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.salary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.salary-card:hover {
    transform: translateY(-5px);
}

.salary-header {
    display: flex;
    justify-content: between;
    align-items: start;
    margin-bottom: 15px;
}

.salary-header h3 {
    margin: 0;
    flex: 1;
}

.salary-link {
    color: #333;
    text-decoration: none;
}

.salary-link:hover {
    color: #4CAF50;
}

.location-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.salary-range {
    margin-bottom: 10px;
}

.avg-salary {
    font-size: 1.5em;
    font-weight: bold;
    color: #4CAF50;
}

.salary-minmax {
    color: #666;
    font-size: 0.9em;
}

.salary-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.salary-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Detail Page Styles */
.salary-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9em;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.salary-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.avg-salary .salary-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #4CAF50;
    margin: 10px 0;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.breakdown-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.breakdown-item .label {
    display: block;
    font-size: 0.9em;
    color: #666;
}

.breakdown-item .amount {
    display: block;
    font-weight: bold;
    color: #333;
}

.rating-stars {
    margin: 10px 0;
}

.star {
    color: #ddd;
    font-size: 1.2em;
}

.star.filled {
    color: #ffc107;
}

.helpful-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.helpful-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 15px 0;
}

.helpful-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.helpful-btn:hover {
    background: #f8f9fa;
}

.feedback-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.salary-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.salary-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.salary-section h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

/* FAQ Styles */
.faq-item {
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 10px;
}

.faq-question {
    padding: 15px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 15px;
    display: none;
    border-top: 1px solid #eee;
}

/* Comment Styles */
.comment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.comment-item {
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.user-name {
    font-weight: bold;
}

.comment-meta {
    color: #666;
    font-size: 0.9em;
}

.comment-actions {
    margin-top: 10px;
}

.comment-actions button {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 0.8em;
}

/* Sidebar Styles */
.salary-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.related-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.related-item a:hover {
    color: #4CAF50;
}

.job-meta, .salary-meta {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.job-salary {
    font-weight: bold;
    color: #4CAF50;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.popular-tag:hover {
    background: #bbdefb;
}

/* Table Styles */
.location-table table,
.experience-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.location-table th,
.experience-table th,
.location-table td,
.experience-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.location-table th,
.experience-table th {
    background: #f8f9fa;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .salary-detail-content {
        grid-template-columns: 1fr;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .salary-grid {
        grid-template-columns: 1fr;
    }
    
    .salary-overview {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .helpful-buttons {
        flex-direction: column;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: start;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
}

.pagination a.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pagination a:hover:not(.active) {
    background: #f8f9fa;
}