/* Team Building Activities Page Specific Styles */

/* Activity Cards Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.activity-card {
    background: white;
    border: 3px solid var(--accent-red);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 40, 80, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 40, 80, 0.25);
    border-color: var(--accent-gold);
}

.activity-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

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

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

.activity-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(139, 40, 80, 0.1) 100%);
}

.activity-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-content {
    padding: 2rem;
}

.activity-content h2 {
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.activity-content p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.activity-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(139, 40, 80, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--accent-red);
    font-size: 1.1rem;
}

.view-gallery-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.activity-card:hover .view-gallery-btn {
    background: var(--accent-gold);
    transform: translateX(5px);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow-y: auto;
}

.gallery-modal.active {
    display: block;
}

.gallery-modal-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    position: relative;
}

.gallery-close {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    background: var(--accent-red);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
}

.gallery-close:hover {
    background: var(--accent-gold);
    transform: rotate(90deg);
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border: 3px solid var(--accent-red);
    border-radius: 20px;
}

.gallery-header h2 {
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.gallery-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1rem;
}

.gallery-description {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 1rem;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 3px solid var(--accent-red);
    background: white;
    box-shadow: 0 5px 20px rgba(139, 40, 80, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 40, 80, 0.25);
    border-color: var(--accent-gold);
}

.photo-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

.photo-item:hover .photo-wrapper img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(136, 33, 78, 0.9) 0%, transparent 100%);
    color: white;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.photo-overlay i {
    font-size: 1.5rem;
    display: block;
    text-align: center;
}

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

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    background: var(--accent-red);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10003;
}

.lightbox-close:hover {
    background: var(--accent-gold);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    background: var(--accent-red);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10003;
}

.lightbox-nav:hover {
    background: var(--accent-gold);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .activity-content {
        padding: 1.5rem;
    }

    .activity-content h2 {
        font-size: 1.3rem;
    }

    .activity-stats {
        flex-direction: column;
        gap: 0.8rem;
    }

    .gallery-modal-content {
        padding: 1rem;
        margin: 1rem;
    }

    .gallery-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .photo-wrapper {
        height: 200px;
    }

    .lightbox-nav {
        font-size: 2rem;
        width: 45px;
        height: 45px;
    }

    .lightbox-close,
    .gallery-close {
        font-size: 2rem;
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .activity-image {
        height: 250px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-wrapper {
        height: 250px;
    }

    .activity-content h2 {
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
