@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

@font-face {
    font-family: 'Pricedown';
    src: url('https://db.onlinewebfonts.com/t/20e29b1b79f8fe32bdf6ad998ad92892.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-input: #2a2a2a;
    --accent: #fca311;
    --accent-hover: #e0920f;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --border-color: #333333;
    --glass-bg: rgba(30, 30, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1600px;
    width: 95%;
    margin: 0 auto;
    padding: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .header-content>div {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.logo {
    font-family: 'Pricedown', sans-serif;
    font-size: 3rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #000;
}

.logo span {
    color: white;
}

/* Ads Area */
.ad-slot-horizontally {
    width: 100%;
    height: 150px;
    background: #222;
    border: 1px dashed #555;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.ad-slot-full-vertically {
    position: relative;
    width: 300px;
    height: calc(100vh - 170px);
    background: #222;
    border: 1px dashed #555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    margin: 0 auto;
}


.ad-slot-square {
    width: 250px;
    height: 250px;
    background: #222;
    border: 1px dashed #555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    margin: 0 auto;
}

/* Search Bar */
.search-section {
    padding: 0 0 20px;
}

.search-form {
    display: flex;
    gap: 15px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 200px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s border-color;
}

.search-input:focus {
    border-color: var(--accent);
}

.select-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s background, 0.3s transform;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.discord-btn {
    background-color: #5865F2;
    color: white;
    border: none;
}

.discord-btn:hover {
    background-color: #4752C4;
    color: white;
}

.search-info {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Grid layout */
.content-area {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.textures-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.texture-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    transition: 0.3s transform, 0.3s box-shadow;
    cursor: pointer;
    aspect-ratio: 1;
    display: flex;
    align-items: flex-end;
}

.texture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

.texture-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s transform;
}

.texture-card:hover .texture-img {
    transform: scale(1.1);
}

.texture-info {
    position: relative;
    z-index: 2;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px 10px 10px;
}

.texture-info h3 {
    font-size: 0.95rem;
    color: white;
    text-shadow: 1px 1px 2px black;
    word-break: break-all;
}

/* Sidebar */
.sidebar {
    width: 300px;
    display: none;
}

@media(min-width: 900px) {
    .sidebar {
        display: block;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-btn {
    background: var(--bg-card);
    color: white;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-secondary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    background: var(--bg-card);
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--accent);
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: var(--accent);
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    overflow-y: auto;
}

.modal-image {
    flex: 1;
    min-width: 300px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.modal-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.modal-details {
    flex: 1;
    min-width: 300px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.table th {
    color: var(--text-secondary);
    font-weight: normal;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.copy-input {
    display: flex;
}

.copy-input input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: white;
    padding: 10px 15px;
    border-radius: 6px 0 0 6px;
    font-family: monospace;
    font-size: 0.9rem;
    outline: none;
}

.copy-btn {
    background: #333;
    border: 1px solid var(--border-color);
    border-left: none;
    color: white;
    padding: 0 15px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: 0.2s;
}

.copy-btn:hover {
    background: var(--accent);
    color: #000;
}

/* Loaders */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin: 40px auto;
}

.loader-container {
    display: flex;
    justify-content: center;
    width: 100%;
    grid-column: 1 / -1;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}