/* 
 * Featured Photos Section CSS
 * This file contains styles for the featured photos section on the index page
 */

/* Featured Photos Section Container */
.featured-photos-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.featured-photos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 111, 97, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.featured-photos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Section Header */
.featured-photos-header {
    text-align: center;
    margin-bottom: 50px;
}

.featured-photos-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.featured-photos-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff6f61, #ff9a8b);
    border-radius: 3px;
}

.featured-photos-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Featured Photos Grid */
.featured-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
    margin-bottom: 40px;
}

/* Grid Item Sizes */
.photo-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

.photo-grid-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-grid-item.medium {
    grid-column: span 2;
    grid-row: span 1;
}

.photo-grid-item.small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Photo Content */
.photo-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.photo-grid-item:hover .photo-grid-image {
    transform: scale(1.05);
}

.photo-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.photo-grid-item:hover .photo-grid-overlay {
    opacity: 1;
    transform: translateY(0);
}

.photo-grid-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.photo-grid-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Photo Badge */
.photo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 111, 97, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.photo-grid-item:hover .photo-badge {
    transform: translateY(0);
    opacity: 1;
}

/* View All Button */
.view-all-photos {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    padding: 12px 30px;
    background: linear-gradient(90deg, #ff6f61, #ff9a8b);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.2);
}

.view-all-photos:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 111, 97, 0.4);
}

.view-all-photos:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 200px);
    }
    
    .photo-grid-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .photo-grid-item.medium {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .photo-grid-item.small {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 576px) {
    .featured-photos-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }
    
    .photo-grid-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 250px;
    }
    
    .featured-photos-title {
        font-size: 2rem;
    }
    
    .featured-photos-subtitle {
        font-size: 1rem;
    }
}
