/* random-artwork-artists.css */

@import url('/fonts.css');
@import url('/tailwind.css');
@import url('/app/global.css');

.artist-item {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.artist-item[style*="block"] {
    opacity: 1;
}

.artist-profile-image, .small-art-thumbnail-random img {
    background: #f0f0f0;
    min-height: 40px;
}

.more-artwork-artists {
    width: 100%;
    height: 100%;
    margin-top: 1rem;
}

.similar-artists-container {
    width: 100%;
}

.artists-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.artist-item {
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #e0e0d9;
    opacity: 1;
}

.lazy-art {
    background: #222;
    min-height: 112px;
}

.artist-profile-image {
    background: #333;
}

/* Artist Profile Section */
.artist-profile-section {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.artist-profile-link {
    text-decoration: none;
}

.artist-profile-image {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

.artist-info {
    flex: 1;
}

.artist-name-similar-artists {
    font-size: 13px;
    font-weight: 600;
    color: white;
    background-color: black;
    padding: 0rem .5rem 0rem .5rem;
    margin: 0;
    font-family: var(--font-inter);
    display: inline-block;
}

/* Artworks Section */
.art-thumbnails-container-random {
    width: 100%;
    overflow: hidden;
}

.art-thumbnails-wrapper-random {
    position: relative;
    display: block;
}

.art-thumbnails-wrapper-random:hover .art-nav-arrow-similar-artists {
    opacity: 1 !important;
    pointer-events: auto !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(1px);
}

.art-thumbnails-wrapper-random:hover .art-nav-arrow-similar-artists:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(1px);
}

.art-thumbnails-grid-similar-artists {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.art-thumbnails-grid-similar-artists::-webkit-scrollbar {
    display: none;
}

.small-art-card-random {
    flex: 0 0 auto;
    width: 6.25rem;
    height: 6.25rem;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: block;
}

.small-art-link-random {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
}

.small-art-thumbnail-random {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #e0e0e0;
    position: relative;
}

.small-art-thumbnail-random img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hover-overlay-random {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.small-art-card-random:hover .hover-overlay-random {
    opacity: 1;
}

.small-art-card-random:hover .small-art-thumbnail-random img {
    filter: brightness(0.6);
}

.artwork-title-overlay-random {
    transform: translateY(140%);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    background-color: black;
    font-family: var(--font-inter);
    text-transform: uppercase;
    white-space: nowrap;
    padding: 4px 10px;
    max-width: 100%;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.art-nav-arrow-similar-artists {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: none !important;
    color: white !important;
    font-weight: bold !important;
    padding: 0.5rem !important;
    border-radius: 25% !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    min-width: 35px !important;
    min-height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    font-size: 1.2rem !important;
    aspect-ratio: 1/1 !important;
}

.art-nav-arrow-similar-artists:first-of-type {
    left: 5px !important;
}

.next-arrow {
    right: 5px !important;
}

.art-nav-arrow-similar-artists:hover {
    background: rgba(0, 0, 0, 0.9) !important;
}

/* Refresh Button Styles */
.refresh-similar-artists-btn {
    background-color: #000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 1rem;
    transition: background-color 0.2s ease;
    font-family: var(--font-inter);
}

.refresh-similar-artists-btn:hover:not(:disabled) {
    background-color: #333;
}

.refresh-similar-artists-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.no-artwork-found {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
    border-radius: 1rem;
    border: 1px solid #e0e0d9;
}

/* Google AdSense Placeholder Styles */
.adsense-container {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.adsense-placeholder {
    width: 100%;
    max-width: 125rem;
    height: 90px;
    max-height: fit-content;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.adsense-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-inter);
}

.adsense-content {
    color: #495057;
    font-size: 0.875rem;
}

.adsense-content p {
    margin: 0.25rem 0;
}

@media (max-width: 768px) {
    .adsense-placeholder {
        max-width: 320px;
        height: 200px;
    }
    
    .artist-profile-image {
        width: 40px;
        height: 40px;
    }
    
    .artist-name-similar-artists {
        font-size: 1rem;
    }
    
    .small-art-card-random {
        width: 6rem;
        height: 6rem;
    }
    
    .art-nav-arrow-similar-artists {
        min-width: 30px !important;
        min-height: 30px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .artist-item {
        padding: 0.75rem;
    }
    
    .small-art-card-random {
        width: 5rem;
        height: 5rem;
    }
    
    .artist-profile-section {
        gap: 0.5rem;
    }
}