/* Gallery-specific styles */

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h1 {
    font-size: 2.5rem;
    color: #e67f0d;
    margin-bottom: 10px;
}

.gallery-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Section Navigation */
.section-nav {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    padding: 20px;
}

.section-nav h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

.section-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #e67f0d;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.section-link:hover {
    background-color: #d16a00;
    transform: translateY(-2px);
}

.section-link.active {
    background-color: #333;
}

.section-link .count {
    background-color: rgba(255,255,255,0.3);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Image Gallery */
.gallery-container {
    margin-top: 30px;
}

.gallery-title {
    text-align: center;
    margin-bottom: 25px;
}

.gallery-title h2 {
    color: #333;
    font-size: 1.8rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Highlight target image from search */
.image-item:target {
    animation: highlightPulse 2s ease-in-out;
    box-shadow: 0 0 20px rgba(230, 127, 13, 0.6);
}

@keyframes highlightPulse {
    0% { 
        box-shadow: 0 0 20px rgba(230, 127, 13, 0.6);
        transform: scale(1.02);
    }
    50% { 
        box-shadow: 0 0 30px rgba(230, 127, 13, 0.8);
        transform: scale(1.05);
    }
    100% { 
        box-shadow: 0 0 20px rgba(230, 127, 13, 0.6);
        transform: scale(1.02);
    }
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-caption {
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Admin Controls */
.admin-controls {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.admin-controls h3 {
    margin-bottom: 10px;
    color: #333;
}

.edit-name-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.edit-name-form input {
    padding: 8px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.9rem;
}

.edit-name-form button {
    padding: 8px 16px;
    background-color: #e67f0d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.edit-name-form button:hover {
    background-color: #d16a00;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
}

.section-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    padding: 12px 16px;
    background-color: #e67f0d;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: #d16a00;
}

.dropdown-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(230, 127, 13, 0.3);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-top: 5px;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dropdown-menu.open {
    max-height: 300px;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f1f2f6;
    transition: background-color 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.active {
    background-color: #e67f0d;
    color: white;
}

.dropdown-item .count {
    background-color: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.dropdown-item.active .count {
    background-color: rgba(255,255,255,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 2rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .edit-name-form {
        flex-direction: column;
        align-items: stretch;
    }
}