/* Inter Font - Cyrillic Ext */
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwkT9nA2.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Inter Font - Cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwAT9nA2.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter Font - Greek Ext */
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwgT9nA2.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* Inter Font - Greek */
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwcT9nA2.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* Inter Font - Vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwsT9nA2.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Inter Font - Latin Ext */
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwoT9nA2.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter Font - Latin */
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwQT9g.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter Font - Normal - Cyrillic Ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvvYwYL8g.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Inter Font - Normal - Cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvmYwYL8g.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter Font - Normal - Greek Ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvuYwYL8g.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* Inter Font - Normal - Greek */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvhYwYL8g.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* Inter Font - Normal - Vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvtYwYL8g.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Inter Font - Normal - Latin Ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvsYwYL8g.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter Font - Normal - Latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcviYwY.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --background: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    color: var(--text-primary);
}

/* Responsive banner */
@media (min-width: 770px) and (max-width: 1150px) {
    .banner-content {
        padding: 0 20px;
    }
    
    .main-wrapper {
        padding: 0 20px;
    }
}

@media (min-width: 319px) and (max-width: 770px) {
    .banner-content {
        padding: 0 10px;
        flex-direction: column;
        gap: 12px;
    }
    
    .banner-text {
        font-size: 14px;
        text-align: center;
    }
    
    .google-play-btn {
        width: 100%;
        justify-content: center;
    }
    
    .main-wrapper {
        padding: 0 10px;
        flex-direction: column;
    }
    
    .filters-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-height: none;
        overflow-y: visible;
        overflow-x: visible;
    }
}

/* Top Banner */
.top-banner {
    display: none; /* Скрыт временно */
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.banner-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.banner-text {
    font-size: 16px;
    font-weight: 500;
    color: #1c1c1c;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    letter-spacing: -0.01em;
}

.google-play-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.google-play-btn:hover {
    background-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.google-play-btn svg {
    width: 20px;
    height: 20px;
}

.main-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1600px;
    margin: 32px auto;
    padding: 0 20px;
}

.container {
    flex: 1;
    min-width: 0;
}

/* Filters Sidebar */
.filters-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 16px;
    max-height: min(calc(100vh - 100px), 1080px);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: calc(32px + 20px);
    align-self: flex-start;
    display: flex;
    flex-direction: column;
}

/* Стилизация скроллбара для сайдбара */
.filters-sidebar::-webkit-scrollbar {
    width: 8px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 4px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.filters-sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.filter-group {
    margin-bottom: 12px;
}

.filter-toggle {
    width: 100%;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) - 4px);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    font-family: inherit;
}

.filter-toggle:hover {
    background: #f8fafc;
    color: var(--text-primary);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.filter-toggle.active {
    background: #f8fafc;
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.filter-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.filter-toggle.active .filter-arrow {
    transform: rotate(180deg);
}

.filter-dropdown {
    margin-top: 8px;
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) - 4px);
    background: var(--card-background);
    max-height: 500px;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.filter-search {
    width: 100%;
    padding: 8px;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) - 4px) calc(var(--border-radius) - 4px) 0 0;
    outline: none;
    font-size: 0.8rem;
    background: var(--background);
}

.filter-options {
    max-height: 450px;
    overflow-y: auto;
}

.filter-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.filter-option:last-child {
    border-bottom: none;
}

.filter-option:hover {
    background: var(--background);
}

.filter-option input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.filter-option label {
    cursor: pointer;
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.filter-option.selected {
    background: rgba(37, 99, 235, 0.1);
}

.clear-filters-btn {
    width: 100%;
    padding: 10px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: calc(var(--border-radius) - 4px);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.clear-filters-btn:hover {
    background: #475569;
    transform: translateY(-1px);
}

.filters-sidebar .sidebar-card {
    margin-top: 12px;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px;
    background: var(--card-background);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-card .card-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sidebar-card .card-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sidebar-card .card-subtext {
    font-size: 0.75rem;
    color: #9ca3af;
}

.sidebar-card .card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.telegram-icon {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    color: #fff;
    border: none;
}

.whatsapp-icon {
    background: #25D366;
    color: #fff;
    border: none;
}

.sidebar-card .card-icon svg {
    width: 22px;
    height: 22px;
}

.donation-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
}

.donation-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

.donation-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.donation-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: calc(var(--border-radius) - 4px);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
}

.donation-btn.paypal-btn {
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
}

.donation-btn.paypal-btn:hover {
    background: linear-gradient(135deg, #003087 0%, #001f5c 100%);
    box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.donation-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.donation-btn:active {
    transform: translateY(0);
}

.donation-btn svg {
    width: 18px;
    height: 18px;
}

.shop-card {
    flex-direction: column;
    gap: 10px;
}

.shop-card .social-link {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: calc(var(--border-radius) - 6px);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.85rem;
    background: transparent;
}

.shop-card .social-link:hover {
    transform: translateX(3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.shop-card .social-link {
    color: #3b82f6;
}

.shop-card .social-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #3b82f6;
}

.shop-card .social-link span {
    color: #3b82f6;
}

.social-card .social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-card .social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: calc(var(--border-radius) - 6px);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.85rem;
    background: transparent;
}

.social-card .social-link.telegram {
    color: #3b82f6;
}

.social-card .social-link.telegram svg {
    color: #3b82f6;
}

.social-card .social-link.tiktok {
    color: #000000;
}

.social-card .social-link.tiktok svg {
    color: #000000;
}

.social-card .social-link.instagram {
    color: #E4405F;
}

.social-card .social-link.instagram svg {
    color: #E4405F;
}

.social-card .social-link.youtube {
    color: #FF0000;
}

.social-card .social-link.youtube svg {
    color: #FF0000;
}

.social-card .social-link span {
    color: inherit;
}

.social-card .social-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.social-card .social-link:hover {
    transform: translateX(3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.contact-card .contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: calc(var(--border-radius) - 6px);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.85rem;
    background: transparent;
}

.contact-card .contact-link:hover {
    transform: translateX(3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.contact-card .contact-link:hover .card-text {
    color: var(--text-primary);
}

.contact-card .card-icon {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.contact-card .contact-link {
    color: #25D366;
}

.contact-card .card-icon svg {
    width: 22px;
    height: 22px;
    color: #25D366;
}

.contact-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-card .card-text {
    font-size: 0.85rem;
    color: #25D366;
    margin: 0;
}

.contact-card .card-subtext {
    font-size: 0.75rem;
    color: #25D366;
    margin: 0;
    opacity: 0.8;
}

/* Scrollbar for filter dropdowns */
.filter-options::-webkit-scrollbar,
.filter-dropdown::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track,
.filter-dropdown::-webkit-scrollbar-track {
    background: var(--background);
}

.filter-options::-webkit-scrollbar-thumb,
.filter-dropdown::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.header-content {
    flex: 1;
    min-width: 0;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.language-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.language-select {
    padding: 8px 12px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) - 4px);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    min-width: 70px;
}

.language-select:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.language-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-container {
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 5px;
    box-shadow: var(--shadow-lg);
}

#searchInput {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
    min-width: 0;
}

#searchInput::placeholder {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.clear-search-btn {
    padding: 10px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: calc(var(--border-radius) - 2px);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.7;
}

.clear-search-btn:hover {
    opacity: 1;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.clear-search-btn:active {
    transform: scale(0.95);
}

#searchBtn {
    padding: 15px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: calc(var(--border-radius) - 2px);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#searchBtn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

#searchBtn:active {
    transform: translateY(0);
}

.loading {
    text-align: center;
    padding: 40px;
    color: white;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
    justify-items: center;
}

@media (min-width: 1600px) {
    .results-container {
        grid-template-columns: repeat(5, 200px);
        justify-content: center;
    }
}

@media (max-width: 1400px) {
    .results-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 1024px) {
    .results-container {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .results-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 600px) and (min-width: 400px) {
    .results-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 8px;
    }
    
    .result-card {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 399px) {
    .results-container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 4px;
        row-gap: 10px;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 4px;
    }
    
    .result-card {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100%;
        padding: 5px;
    }
}


.result-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 200px;
    min-width: 180px;
    aspect-ratio: 1;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--background);
    border-radius: calc(var(--border-radius) - 4px);
    padding: 6px;
    border: 1px solid var(--border-color);
    display: block;
}

.card-image-placeholder {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: 1;
    background: var(--background);
    border-radius: calc(var(--border-radius) - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.card-info {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 55px;
    padding-top: 8px;
    overflow: hidden;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    flex-shrink: 0;
}

.card-years {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-size: 1.1rem;
}

.suggestions {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.suggestions-label {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 500;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-btn {
    padding: 10px 20px;
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    border-radius: calc(var(--border-radius) - 4px);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
}

.suggestion-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    padding: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 10px 16px;
    background: var(--card-background);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) - 4px);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
    cursor: default;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--background);
}

.pagination-ellipsis {
    padding: 0 8px;
    color: var(--text-secondary);
    font-weight: 600;
}

.pagination-info {
    color: white;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--card-background);
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: var(--transition);
}

.close:hover,
.close:focus {
    color: var(--text-primary);
}

.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background: var(--background);
    border-radius: calc(var(--border-radius) - 4px);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.modal-details {
    display: grid;
    gap: 15px;
}

.detail-item {
    padding: 15px;
    background: var(--background);
    border-radius: calc(var(--border-radius) - 4px);
    border-left: 4px solid var(--primary-color);
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.detail-value.description {
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .filters-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 20px;
        max-height: none;
        overflow-y: visible;
        overflow-x: visible;
    }
    
    .banner-content {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .header-content {
        width: 100%;
    }
    
    .language-selector {
        align-self: flex-end;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .filters-sidebar {
        padding: 15px;
        max-height: none;
        overflow-y: visible;
        overflow-x: visible;
    }
    
    .filter-dropdown {
        max-height: 300px;
    }
    
    .donation-card {
        margin-top: 15px;
    }
    
    .donation-text {
        font-size: 0.85rem;
    }
    
    .donation-btn {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
}

@media (max-width: 400px) {
    .search-box {
        gap: 6px;
        padding: 4px;
    }
    
    .clear-search-btn {
        padding: 8px;
    }
    
    .clear-search-btn svg {
        width: 16px;
        height: 16px;
    }
    
    #searchInput {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    #searchInput::placeholder {
        font-size: 0.8rem;
    }
    
    #searchBtn {
        padding: 10px 16px;
    }
    
    #searchBtn svg {
        width: 18px;
        height: 18px;
    }
    
    .main-wrapper {
        padding: 0 4px;
    }
    
    .results-container {
        padding: 0 2px;
        column-gap: 10px;
        row-gap: 10px;
    }
    
    .result-card {
        padding: 4px;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100%;
    }
    
    .card-image {
        padding: 3px;
    }
}

/* Scrollbar styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

