/* esAccesible - Main Styles */

/* Base */
:root {
    --ea-green: #2e7d32;
    --ea-green-light: #4caf50;
    --ea-green-dark: #1b5e20;
    --ea-warm: #f9f5f0;
    --ea-gold: #ffc107;
    --ea-silver: #9e9e9e;
    --ea-bronze: #cd7f32;
    --ea-font-min: 16px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: var(--ea-font-min);
    line-height: 1.6;
}

/* Skip to main content - accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--ea-green);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Admin/Business panel sidebar - Metronic dark style */
.admin-body {
    background-color: #1e1e2d;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
    background: #1a1a2e !important;
    display: flex;
    flex-direction: column;
}

.admin-sidebar .nav-link {
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.08);
}

.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #1e1e2d;
    color: #e0e0e0;
}

.admin-header {
    background: #1a1a2e !important;
}

/* Admin cards */
.admin-content .card {
    background: #2a2a3d;
    border: none;
    border-radius: 10px;
    color: #e0e0e0;
}

.admin-content .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-content .table {
    color: #e0e0e0;
}

.admin-content .table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #9e9e9e;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.admin-content .table td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

/* Stat cards in panels */
.stat-card {
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Seal badges */
.seal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.seal-none {
    background: #e0e0e0;
    color: #666;
}

.seal-bronze {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: white;
}

.seal-silver {
    background: linear-gradient(135deg, #c0c0c0, #9e9e9e);
    color: white;
}

.seal-gold {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
}

/* Stars rating */
.stars {
    color: var(--ea-gold);
    font-size: 1.2rem;
}

.stars .bi-star-fill { color: var(--ea-gold); }
.stars .bi-star { color: #ddd; }

/* Star rating input */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    transition: color 0.15s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--ea-gold);
}

/* Accessibility criterion icons */
.criterion-yes { color: var(--ea-green); }
.criterion-no { color: #d32f2f; }
.criterion-unknown { color: #9e9e9e; }

/* Venue cards */
.venue-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.venue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.venue-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.venue-card .card-body {
    padding: 1rem;
}

/* Badge display */
.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Form styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--ea-green-light);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Buttons */
.btn-success {
    background-color: var(--ea-green);
    border-color: var(--ea-green);
}

.btn-success:hover {
    background-color: var(--ea-green-dark);
    border-color: var(--ea-green-dark);
}

/* Photo gallery/carousel */
.venue-gallery {
    border-radius: 12px;
    overflow: hidden;
}

.venue-gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Map */
.venue-map {
    height: 300px;
    border-radius: 12px;
    z-index: 1;
}

.map-fullpage {
    height: calc(100vh - 160px);
    border-radius: 0;
}

/* Photo upload preview */
.photo-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--ea-green-light);
    outline-offset: 2px;
}

/* Ensure minimum font size for WCAG */
p, li, td, th, label, input, select, textarea, a {
    font-size: max(1rem, var(--ea-font-min));
}

small, .small {
    font-size: max(0.875rem, 14px);
}

/* High contrast for links */
a {
    color: var(--ea-green-dark);
}

a:hover {
    color: var(--ea-green);
}

/* Pagination dark mode for admin */
.admin-content .page-link {
    background-color: #2a2a3d;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.admin-content .page-item.active .page-link {
    background-color: var(--ea-green);
    border-color: var(--ea-green);
}
