/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

body {
    /* Background color will be set by dynamic CSS */
}

.logo-container {
    text-align: center;
}

.logo {
    font-family: 'Archivo Black', 'Arial Black', Arial, sans-serif;
    font-style: italic;
    letter-spacing: 0.04em;
    /* Color will be set by dynamic CSS */
    font-size: 4rem;
}

@media (max-width: 768px) {
    .logo {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 2.3rem;
    }
}


.search-container {
    width: 100%;
    max-width: 784px;
    margin: 0 auto;
}

.search-input {
    height: 50px;
    border-radius: 25px !important;
    padding: 0 25px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.search-input:hover,
.search-input:focus {
    box-shadow: 0 4px 12px rgba(32,33,36,.2);
    border-color: transparent;
}

.search-button {
    margin: 20px auto 0;
    padding: 12px 20px;
    border-radius: 25px;
    background: white;
    border: none;
    /* Color will be set by dynamic CSS */
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    line-height: 1;
}

.search-button:hover {
    transform: translateY(-2px);
    scale: 1.15;
    /* Color is now set dynamically in the template */
}

#searchResults {
    width: 100%;
    max-width: 1924px;
    margin: 0 auto;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
}

/* Medium screens (tablets) */
@media (min-width: 576px) {
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }
}

/* Desktop screens */
@media (min-width: 992px) {
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
}

.thumbnail-item {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    scale: 1.05;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: white;
    padding: 8px;
}

/* Adjust padding for thumbnail images on mobile */
@media (max-width: 576px) {
    .thumbnail-item img {
        padding: 4px; /* Smaller padding on mobile */
    }
    
    .thumbnail-item:hover {
        transform: translateY(-2px); /* Smaller hover effect on mobile */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

.tags-container {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.tags-container .badge {
    font-size: 1rem;
    padding: 0.7em 1.2em;
    margin: 0.3rem;
    background: linear-gradient(45deg, #FFD700, #FF4500);
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.tags-container .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.info-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-link:hover {
    color: #555;
    text-decoration: underline;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.language-flags {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    max-width: 100%;
    width: 100%;
}
.language-flag {
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}
.language-flag:hover {
    opacity: 1;
    transform: scale(1.2);
}
.language-flag.active {
    opacity: 1;
    font-size: 2.5rem;
    transform: scale(1.2);
}

/* New language selector styles */
.language-selector {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.selected-language {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 5px 10px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.selected-language:hover {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-indicator {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.language-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    width: 220px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
    align-items: center;
}

.language-dropdown.show {
    display: grid;
}

/* Keep existing language flag styles but adjust for the dropdown */
.language-flag {
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.language-flag:hover {
    opacity: 1;
    transform: scale(1.2);
}

.language-flag.active {
    opacity: 1;
    transform: scale(1.1);
}

.selected-language .language-flag {
    opacity: 1;
    font-size: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-selector {
        bottom: 15px;
        right: 15px;
    }
    
    .info-link {
        bottom: 15px;
        left: 15px;
        font-size: 0.8rem;
    }
    
    .language-dropdown {
        width: 180px;
        gap: 8px;
        padding: 10px;
    }
    
    .language-flag {
        font-size: 1.5rem;
    }
    
    .selected-language .language-flag {
        font-size: 1.8rem;
    }
}