/* ==========================================================================
   Component Styles - Reusable UI Components
   ========================================================================== */

/* Collection item component */
.collection-item {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.collection-item:hover {
    transform: translateY(-10px);
}

.collection-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.collection-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.collection-item:hover .collection-image img {
    transform: scale(1.05);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collection-item:hover .collection-overlay {
    opacity: 1;
}

.view-collection {
    color: white;
    background-color: rgba(0,0,0,0.7);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.collection-item:hover .view-collection {
    transform: translateY(0);
}

.collection-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.collection-description {
    color: #666;
    line-height: 1.6;
}

/* Artwork item component */
.artwork-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.artwork-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artwork-item:hover .artwork-image img {
    transform: scale(1.05);
}

.artwork-details {
    padding: 1.5rem;
}

.artwork-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.artwork-artist {
    font-weight: 500;
    color: #444;
    margin-bottom: 1rem;
}

.artwork-info {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.artwork-info p {
    margin-bottom: 0.5rem;
}

.artwork-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.artwork-link {
    display: inline-block;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.artwork-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #222;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.artwork-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Gallery item component */
.gallery-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Hide the black overlay but keep the zoom effect */
.gallery-item-info {
    display: none;
}

/* Original gallery-item-info styles kept for reference but not applied */
/*
.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-info {
    opacity: 1;
}
*/

.gallery-item-title {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

.gallery-item-details {
    font-size: 14px;
    margin: 5px 0 0;
    opacity: 0.8;
}

/* Lightbox component */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
    border-radius: 0 5px 5px 0;
}

.lightbox-next {
    right: 20px;
    border-radius: 5px 0 0 5px;
}

.lightbox-caption {
    width: 100%;
    color: white;
    padding: 15px;
    text-align: center;
    margin-top: 15px;
    background: transparent;
}

.lightbox-title {
    font-size: 18px;
    margin: 0 0 5px;
}

.lightbox-details {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* Navigation item component */
.nav-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.nav-item.active {
    background-color: #222;
}

.nav-item.active a {
    color: white;
}

.nav-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-item:hover a {
    color: #000;
}

.nav-item.active:hover a {
    color: white;
}

/* Social links component */
.social-links a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: #aaa;
}

/* Form components */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* More subtle validation styling */
.contact-form input:focus:invalid,
.contact-form textarea:focus:invalid {
    border-color: #ddd;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* Optional: Add a subtle indication for valid fields when focused */
.contact-form input:focus:valid,
.contact-form textarea:focus:valid {
    border-color: #999;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: #222;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transition: height 0.3s ease;
}

.contact-form button:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.contact-form button:hover::after {
    height: 100%;
}

.contact-form button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for components */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
}