/* Locations Index Page - Hue Xanh Brand */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #f06421;
    --secondary-color: #140000;
    --accent-color: #f06421;
    --success-color: #f06421;
    --warning-color: #f06421;
    --danger-color: #f06421;
    --light-color: #ffffff;
    --dark-color: #140000;
    --text-muted: #666666;
    --border-color: #e5e7eb;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #f06421 0%, #f06421 100%);
    --gradient-light: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

/* Page Header */
.locations-header {
    background: var(--gradient-light);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.locations-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.add-location-btn {
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.add-location-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.add-location-btn:hover::before {
    left: 100%;
}

.add-location-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: #ffffff;
    text-decoration: none;
}

/* Filters Section */
.filters-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow: hidden;
}

.filters-header {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.filters-body {
    padding: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(240, 100, 33, 0.25);
    outline: none;
}

.filter-btn {
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(240, 100, 33, 0.3);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 100, 33, 0.4);
    color: #ffffff;
}

/* Location Cards */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.location-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.location-card:hover::before {
    opacity: 1;
}

.location-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.location-card:hover .location-image {
    transform: scale(1.05);
}

.location-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.location-content {
    padding: 1.5rem;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.location-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.location-badge {
    background: var(--warning-color);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.75rem;
}

.location-category {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-category i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.location-address {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-address i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.location-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.location-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.location-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-stars i {
    color: var(--warning-color);
    font-size: 0.9rem;
}

.rating-stars i.text-muted {
    color: var(--border-color);
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.location-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.location-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.action-btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(240, 100, 33, 0.3);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 100, 33, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.action-btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.action-btn-secondary:hover {
    background: var(--light-color);
    color: var(--dark-color);
    text-decoration: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gradient-light);
    border-radius: 16px;
    border: 2px dashed var(--border-color);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.empty-state-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination .page-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: #ffffff;
}

.pagination .page-link:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .page-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .locations-header {
        padding: 2rem 0 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .add-location-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .location-card {
        border-radius: 12px;
    }
    
    .location-content {
        padding: 1.25rem;
    }
    
    .location-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-btn {
        justify-content: center;
        width: 100%;
    }
    
    .empty-state {
        padding: 3rem 1rem;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
    
    .empty-state-title {
        font-size: 1.25rem;
    }
    
    .location-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .locations-header {
        padding: 1.5rem 0 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .locations-grid {
        gap: 1rem;
    }
    
    .location-content {
        padding: 1rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-card {
    animation: fadeInUp 0.6s ease-out;
}

.location-card:nth-child(2) {
    animation-delay: 0.1s;
}

.location-card:nth-child(3) {
    animation-delay: 0.2s;
}

.location-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Focus States for Accessibility */
.action-btn:focus,
.add-location-btn:focus,
.filter-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .location-card {
        border: 2px solid var(--dark-color);
    }
    
    .action-btn-primary {
        background: var(--primary-color);
    }
    
    .action-btn-secondary {
        border-color: var(--dark-color);
        color: var(--dark-color);
    }
}
