/* Epics page styles */
.epics-hero {
    background-color: var(--racing-pink);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.epic-hero-content,
.epics-hero .container {
    position: relative;
    z-index: 1;
}

.epic-hero h1,
.epics-hero h1 {
    color: white;
    margin-bottom: 1rem;
}

.epic-hero .status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    background-color: var(--racing-pink);
    color: white;
}

.epic-hero p,
.epics-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.epics-section {
    padding: 4rem 0;
}

.epic-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.epic-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.epic-image {
    height: 300px;
    overflow: hidden;
}

.epic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.epic-details {
    padding: 2rem;
}

.epic-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--charcoal);
    opacity: 0.8;
}

.epic-meta i {
    margin-right: 0.5rem;
}

.epic-details h3 {
    margin-bottom: 1rem;
    color: var(--racing-pink);
    font-size: 1.8rem;
}

.epic-desc {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .epic-card {
        flex-direction: row;
    }
    
    .epic-image {
        width: 40%;
        height: auto;
    }
    
    .epic-details {
        width: 60%;
    }
}

/* Stelvio (epic detail) page styles */
.epic-hero {
    height: 60vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0; /* Light placeholder color */
}

.epic-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.epic-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.epic-hero-content h1 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.epic-hero-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.epic-details-section {
    padding: 4rem 0;
}

.epic-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.epic-info-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.epic-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
    background-color: var(--cloud);
    border-radius: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--deep-forest);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.day-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.day-card h3 {
    color: var(--deep-forest);
    border-bottom: 1px solid var(--cloud);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.day-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.day-meta span {
    display: flex;
    align-items: center;
}

.day-meta i {
    margin-right: 0.5rem;
    color: var(--racing-pink);
}

.epic-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.gallery-item:hover img {
    transform: none;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

@media (max-width: 900px) {
    .epic-details-grid {
        grid-template-columns: 1fr;
    }
    
    .epic-stats {
        grid-template-columns: 1fr;
    }
    
    .epic-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item:first-child {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
}

@media (max-width: 600px) {
    .epic-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:first-child {
        grid-column: 1;
        grid-row: 1;
    }
}

/* Hero riders profile images */
.epic-hero-riders {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    z-index: 5;
}

.hero-rider-profile {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid white;
    overflow: hidden;
    margin-left: 8px;
}

.hero-rider-profile:first-child {
    margin-left: 0;
}

.hero-rider-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.hero-rider-profile:hover img {
    filter: grayscale(0%);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .epic-hero-content {
        padding-bottom: 4rem; /* Reduced space for smaller rider profiles */
    }
    
    .epic-hero-riders {
        position: absolute;
        bottom: 1rem;
        right: auto;
        left: 2rem;
        width: calc(100% - 4rem);
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .hero-rider-profile {
        margin-left: 0;
        width: 25px;
        height: 25px;
        border-width: 0.5px;
    }
} 