:root {
    --bg-color: #0d0d0d;
    --card-bg: rgba(30, 30, 30, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --accent-color: #0257c7;
    --accent-glow: rgba(38, 0, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --font-main: 'Outfit', sans-serif;
    --modal-overlay: rgba(0, 0, 0, 0.85);
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

footer {
    text-align: center;
    padding: -10px;
    font-size: 12px
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

header {
    text-align: center;
    padding: 60px 20px 40px;
    background: radial-gradient(circle at center, rgba(30, 30, 30, 0.5) 0%, transparent 70%);
    position: relative;
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lang-btn:hover {
    background: rgba(50, 50, 50, 0.8);
    color: #fff;
}

.lang-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

h1 {
    font-size: 3rem;
    margin: 0;
    letter-spacing: -1px;
    text-transform: uppercase;
    font-weight: 600;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

.subtitle {
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 300;
}

.search-container {
    max-width: 800px;
    margin: 30px auto 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
}

#searchInput {
    width: 100%;
    padding: 15px 50px 15px 25px;
    font-size: 1.1rem;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: var(--font-main);
}

#searchInput:focus {
    background: rgba(50, 50, 50, 0.8);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(73, 70, 255, 0.3);
}

.clear-btn {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: none;
    transition: color 0.3s ease;
}

.clear-btn:hover {
    color: #fff;
}

.filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

select {
    padding: 12px 20px;
    font-size: 1rem;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 25px;
    color: #fff;
    outline: none;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    min-width: 180px;
}

select:hover,
select:focus {
    border-color: var(--accent-color);
    background: rgba(40, 40, 40, 0.9);
}

option {
    background: #1c1c1c;
    color: #fff;
}


main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.item:hover {
    transform: translateY(-5px);
    background: rgba(50, 50, 50, 0.7);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
}

.item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform var(--transition-speed);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.item:hover img {
    transform: scale(1.1);
}

.item img.rotated {
    transform: rotate(45deg);
}

.item:hover img.rotated {
    transform: rotate(45deg) scale(1.1);
}

.pagination-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

#paginationControls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid var(--card-border);
    color: #b3b3b3;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
    font-weight: 500;
}

.page-btn:hover:not(:disabled) {
    background: #444;
    color: #fff;
}

.page-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.modal.active .modal-content img {
    animation: modalImageEntry 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

@keyframes modalImageEntry {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal h2 {
    color: var(--accent-color);
    margin: 0 0 10px;
    font-size: 2.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.3s;
}

.modal.active h2 {
    opacity: 1;
    transform: translateY(0);
}

#modalID {
    font-size: 1.2rem;
}

.modal p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.4s;
}

.modal.active p {
    opacity: 1;
    transform: translateY(0);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .item img {
        width: 60px;
        height: 60px;
    }

    .modal-content img {
        width: 100%;
        height: auto;
        max-width: 200px;
    }

    .filters {
        flex-direction: column;
        align-items: center;
    }

    select {
        width: 100%;
        max-width: 300px;
    }

    .language-selector {
        position: relative;
        top: 0;
        right: 0;
        justify-content: center;
        margin-bottom: 20px;
    }
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

.not-animated {
    transition: none !important;
}