/* gallery.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --bg-color: #e6f3f3;
    --text-color: #333;
    --primary-color: #16a085;
    --secondary-color: #1abc9c;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

[data-theme="dark"] {
    --bg-color: #1a2b2b;
    --text-color: #e6f3f3;
    --primary-color: #1abc9c;
    --secondary-color: #16a085;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .top-bar {
    background: linear-gradient(90deg, #0d47a1, #1a73e8);
}

.top-bar {
    background: linear-gradient(90deg, #1a73e8, #0d47a1);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section {
    background: white;
    padding: 35px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

[data-theme="dark"] .section {
    background: #2e3b3b;
}

.gallery-filter {
    border-left: 5px solid #16a085;
}

[data-theme="dark"] .gallery-filter {
    border-left-color: var(--primary-color);
}

.gallery-filter h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

[data-theme="dark"] .gallery-filter h2 {
    color: var(--text-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #16a085;
    background: transparent;
    color: #16a085;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

[data-theme="dark"] .filter-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn:hover, .filter-btn.active {
    background: #16a085;
    color: white;
}

[data-theme="dark"] .filter-btn:hover, [data-theme="dark"] .filter-btn.active {
    background: var(--primary-color);
}

.gallery {
    border-left: 5px solid #1abc9c;
}

[data-theme="dark"] .gallery {
    border-left-color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(22, 160, 133, 0.8);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
    text-align: center;
}

[data-theme="dark"] .overlay {
    background: rgba(26, 188, 156, 0.8);
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.overlay p {
    font-size: 16px;
    margin-bottom: 10px;
}

.load-more {
    display: block;
    margin: 30px auto 0;
    padding: 10px 20px;
    border: 2px solid #1a73e8;
    background: transparent;
    color: #1a73e8;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

[data-theme="dark"] .load-more {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.load-more:hover {
    background: #1a73e8;
    color: white;
}

[data-theme="dark"] .load-more:hover {
    background: var(--primary-color);
}

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot {
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    overflow: hidden;
}

[data-theme="dark"] .chatbot {
    background: #2e3b3b;
}

.chatbot.hidden {
    display: none;
}

.chatbot-header {
    background: #16a085;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
}

[data-theme="dark"] .chatbot-header {
    background: var(--primary-color);
}

.chatbot-messages {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
}

.chatbot input {
    width: 70%;
    padding: 10px;
    border: 2px solid #16a085;
    border-radius: 10px;
    margin: 10px;
}

[data-theme="dark"] .chatbot input {
    border-color: var(--primary-color);
    color: var(--text-color);
    background: #3a4a4a;
}

#chatbot-send {
    width: 20%;
    margin: 0 10px 10px;
}

@media (max-width: 768px) {
    .filter-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}