﻿namespace EskilstunaKlatterKlubb.wwwroot.css


/* Hero sektion */
.events-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.events-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.events-hero .lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sektion header */
.events-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

    .section-header h2 {
        font-size: 2.5rem;
        color: #333;
        margin-bottom: 10px;
    }

    .section-header p {
        color: #666;
        font-size: 1.1rem;
    }

/* Events grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Event card */
.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .event-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

/* Event bild */
.event-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

    .event-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

/* Placeholder när ingen bild finns */
.event-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* Datum badge */
.event-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .event-date-badge .day {
        display: block;
        font-size: 1.8rem;
        font-weight: 700;
        color: #667eea;
        line-height: 1;
    }

    .event-date-badge .month {
        display: block;
        font-size: 0.9rem;
        color: #666;
        text-transform: uppercase;
        margin-top: 5px;
    }


/* Enskilt Event innehåll */
.event-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

    .event-card-title a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .event-card-title a:hover {
            color: #667eea;
        }

.event-card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.event-message {
    padding: 10px 15px;
    font-size: 1.5rem;
    text-align: center;
    color: var(--color-primary);
    font-weight: 500;
    font-style: italic;
}
/* Knappar */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #4a9c9c 0%, #3a838a 100%);
    color: white;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }



.btn-secondary:active {
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}
.btn-large
{
    width: 40%;
}


.btn-secondary:hover {
    background: #e0e0e0;
}

.event-actions {
    min-height: 100px; 
}

/* Inga events meddelande */
.no-events {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

    .no-events .icon {
        font-size: 5rem;
        display: block;
        margin-bottom: 20px;
        opacity: 0.3;
    }

    .no-events h3 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        color: #333;
    }

/* Responsiv design */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .events-hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .event-card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .events-hero {
        padding: 50px 20px;
    }

    .event-date-badge {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }

        .event-date-badge .day {
            font-size: 1.4rem;
        }
}


/* Enskilt event */

.event-detail-hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-color: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.event-detail-hero h1 {
    margin-top: 8rem;
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.event-detail-meta {
    display: flex;
    gap: 30px;
    justify-content: center;
    font-size: 1.2rem;
}

.event-detail-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto 100px 0;
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.event-actions {
    text-align: center;
    margin: 60px 0;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.2rem;
}

.event-back {
    text-align: center;
    margin-top: 40px;
}