/* MASONRY GALLERY SECTION */
.gallery-section {
    margin-top: 25px;
    margin-bottom: 60px;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.gallery-header h3 {
    font-weight: 600;
    color: var(--second-color);
    margin: 0;
}

.gallery-header p {
    color: var(--third-color);
    font-size: 15px;
    margin: 0;
}

/* CSS COLUMNS MASONRY LAYOUT */
.gallery {
    column-width: 250px;
    column-gap: 20px;
    break-inside: avoid;
}

.gallery-item {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    break-inside: avoid;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(15, 115, 238, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay with actions */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 16px;
    background: linear-gradient(to top, 
        rgba(8, 16, 45, 0.95) 0%,
        rgba(8, 16, 45, 0.7) 40%,
        transparent 100%);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.3;
    color: white;
}

/* Action icons - wishlist, download, brush */
.item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-icon:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    transform: scale(1.1);
}

.action-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.action-icon:hover svg {
    stroke: white;
}

/* Badges */
.item-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: var(--second-color);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-badge.trending {
    background: var(--main-color);
    color: white;
}

.item-badge.free {
    background: #10b981;
    color: white;
}

.item-badge svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

/* Category tag */
.item-category {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(8, 16, 45, 0.8);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-category svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* Login Prompt Styles */
.login-prompt {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--second-color) 0%, #0a1a3a 100%);
    border-radius: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.login-prompt::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15,115,238,0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.login-prompt::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(35px);
}

.login-prompt-content {
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.login-prompt-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--fourth-color);
    border: 1px solid rgba(255,255,255,0.2);
}

.login-prompt-icon svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
}

.login-prompt h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fourth-color);
    margin-bottom: 15px;
    font-family: 'Geom', sans-serif;
}

.login-prompt p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.login-prompt-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 35px;
}

.btn-login, .btn-register {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login {
    background: var(--main-color);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(15,115,238,0.3);
}

.btn-login:hover {
    background: #0a5ed1;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(15,115,238,0.4);
}

.btn-register {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-register:hover {
    border-color: var(--main-color);
    background: rgba(15,115,238,0.2);
    transform: translateY(-2px);
}

.login-prompt-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.login-prompt-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.login-prompt-features .feature svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton Loader Styles */
.skeleton-loader {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.skeleton-card {
    background: var(--fourth-color);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-content {
    padding: 15px;
}

.skeleton-title {
    height: 18px;
    width: 80%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-meta {
    height: 12px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* End of Gallery */
.end-of-gallery {
    text-align: center;
    padding: 40px;
    color: var(--third-color);
    clear: both;
    width: 100%;
}

.end-of-gallery svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    stroke: var(--third-color);
}

.end-of-gallery h5 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--second-color);
}

.end-of-gallery p {
    font-size: 0.9rem;
}

/* Hide login prompt initially */
.login-prompt {
    display: none;
}

.login-prompt.visible {
    display: block;
}

/* No Results Section */
.no-results-section {
    text-align: center;
    padding: 80px 40px;
    background: var(--fourth-color);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.no-results-section svg {
    width: 30px;
    height: 30px;
    stroke: var(--fourth-color);
    fill: none;
}

.no-results-section h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--second-color);
    margin-bottom: 10px;
}

.no-results-section p {
    font-size: 1rem;
    color: var(--third-color);
    margin-bottom: 25px;
}

.no-results-section .btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--main-color);
    color: white;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.no-results-section .btn-reset:hover {
    background: #0a5ed1;
    transform: translateY(-2px);
    gap: 12px;
}
/* Download */
.download-btn {
    position: relative;
}

.download-size-menu {
    display: none;
    transition: all 0.2s ease;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 160px;
    z-index: 100;
    margin-bottom: 10px;
}
/* .download-btn:hover .download-size-menu {
    opacity: 1;
    visibility: visible;
} */

.download-size-menu .size-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.85rem;
    color: var(--second-color);
}

.download-size-menu .size-option:hover {
    background: rgba(15,115,238,0.1);
    color: var(--main-color);
}

.download-size-menu .size-option span {
    color: var(--third-color);
    font-size: 0.7rem;
}

/* Responsive - columns adjust automatically */
@media (max-width: 1400px) {
    .gallery {
        column-width: 240px;
    }
}

@media (max-width: 1200px) {
    .gallery {
        column-width: 220px;
    }
}

@media (max-width: 768px) {
    .gallery {
        column-width: 200px;
        column-gap: 15px;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .gallery {
        column-width: 100%;
        column-count: 1;
    }
}