:root {
    --dark-bg: #121212;
    --dark-card: #1E1E1E;
    --text-primary: #E0E0E0;
    --accent-color: #BB86FC;
    --hover-overlay: rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 100%);
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(187,134,252,0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.header-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.category-tag {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: rgba(187,134,252,0.1);
    border: 1px solid rgba(187,134,252,0.3);
}

.category-tag:hover {
    background-color: rgba(187,134,252,0.2);
    transform: scale(1.05);
    color: var(--accent-color);
}

.category-tag.active {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    transform: scale(1.05);
}

header h1 {
    color: var(--accent-color);
    font-family: 'Alegreya', serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: capitalize;
    text-shadow: 0 2px 3px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: linear-gradient(
        135deg, 
        rgba(187,134,252,0.1) 0%, 
        rgba(187,134,252,0.2) 100%
    );
    transition: all 0.3s ease;
}

header h1:hover {
    transform: scale(1.03);
    background: linear-gradient(
        135deg, 
        rgba(187,134,252,0.2) 0%, 
        rgba(187,134,252,0.3) 100%
    );
}

nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

nav input, nav select {
    padding: 0.5rem;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    border-radius: 4px;
}

.masonry-grid {
    column-count: 5;
    column-gap: 10px;
    padding: 20px;
    row-gap: 10px;
}

.wallpaper-item {
    break-inside: avoid;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.wallpaper-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.wallpaper-item:hover img {
    filter: brightness(70%) blur(2px);
}

.wallpaper-overlay {
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wallpaper-top-overlay {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    padding: 15px;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.wallpaper-bottom-overlay {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px;
}

.wallpaper-item:hover .wallpaper-overlay {
    opacity: 1;
    pointer-events: auto;
}

.overlay-actions {
    display: flex;
    gap: 20px;
}

.overlay-actions button {
    background: rgba(187,134,252,0.2);
    border: 1px solid rgba(187,134,252,0.5);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.overlay-actions button:hover {
    background: rgba(187,134,252,0.4);
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.overlay-actions button i {
    font-size: 1.5rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 100%);
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(187,134,252,0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.footer-tag {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: rgba(187,134,252,0.1);
    border: 1px solid rgba(187,134,252,0.3);
}

.footer-tag:hover {
    background-color: rgba(187,134,252,0.2);
    transform: scale(1.05);
    color: var(--accent-color);
}

footer p {
    color: var(--text-primary);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Removed pagination styles */
