/* Events Section Styles — tarotreader.ie */
/* Colours: primary #483268, accent #f4a6c1, cta #c76185 */

/* ===== Listing Page ===== */

.events-listing {
    padding: 2rem 2rem 4rem;
}

.events-listing__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #1a1a1a;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.events-empty {
    text-align: center;
    color: #666;
    font-size: 1.05rem;
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: row;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.event-card__link {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.event-card__link:visited,
.event-card__link:hover,
.event-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.event-card__image {
    flex-shrink: 0;
    width: 35%;
    overflow: hidden;
    background: #f5f5f5;
}

.event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-card__content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card__date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.event-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.event-card__excerpt {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.25rem;
}

.event-card__read-more {
    display: inline-block;
    color: #483268;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.event-card:hover .event-card__read-more {
    color: #c76185;
    text-decoration: underline;
}

/* ===== Individual Event Post ===== */

.event-breadcrumb {
    position: static;
    background: none;
    border-bottom: none;
    box-shadow: none;
    padding: 1.25rem 2rem 0;
    max-width: 900px;
    margin: 0 auto;
    z-index: auto;
}

.event-breadcrumb a {
    color: #483268;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.event-breadcrumb a:hover {
    color: #c76185;
    text-decoration: underline;
}

.event-post {
    padding: 2rem 2rem 4rem;
}

.event-post .container.narrow {
    max-width: 760px;
    margin: 0 auto;
}

.event-post h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    text-shadow: none;
    margin-top: 1.5rem;
}

.event-post__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #888;
}

.event-post__date { color: #888; }
.event-post__byline { color: #555; }

.event-post__byline a {
    color: #483268;
    font-weight: 600;
    text-decoration: none;
}

.event-post__byline a:hover { text-decoration: underline; }
.event-post__header .sep { color: #ccc; }

/* Intro section: image + text side by side */
.event-intro-section {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.event-intro-section__image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.event-intro-section__image img {
    width: 100%;
    height: auto;
    display: block;
}

.event-intro-section__text p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.9;
    margin: 0;
}

/* Post body */
.event-post__body h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.event-post__body p {
    color: #333;
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.event-post__body a {
    color: #483268;
    text-decoration: underline;
}

.event-post__body a:hover { color: #c76185; }

/* Inline figures */
.event-post__figure {
    margin: 2rem 0;
    text-align: center;
}

.event-post__figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: inline-block;
}

/* CTA block */
.event-post__cta {
    background: linear-gradient(135deg, #483268 0%, #c76185 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
}

.event-post__cta h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    color: #fff;
}

.event-post__cta p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.event-post__cta .btn {
    background: #fff;
    color: #483268;
    border: 2px solid #fff;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}

.event-post__cta .btn:hover {
    background: rgba(255,255,255,0.9);
    color: #483268;
}

/* ===== Author Bio ===== */

.author-bio {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: #f4eeff;
    border-left: 4px solid #483268;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.author-bio__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio__name {
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.author-bio__text {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.author-bio__text a {
    color: #483268;
    font-weight: 600;
    text-decoration: none;
}

.author-bio__text a:hover { text-decoration: underline; }

/* ===== Share Buttons ===== */

.share-buttons {
    margin: 3rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #483268;
}

.share-buttons__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-buttons__list {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #483268;
    color: #483268;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0;
}

.share-button--facebook { border-color: #1877F2; color: #1877F2; }
.share-button--facebook:hover,
.share-button--facebook:focus { background-color: #1877F2; border-color: #1877F2; color: #fff; }

.share-button--whatsapp { border-color: #25D366; color: #25D366; }
.share-button--whatsapp:hover,
.share-button--whatsapp:focus { background-color: #25D366; border-color: #25D366; color: #fff; }

.share-button--email { border-color: #EA4335; color: #EA4335; }
.share-button--email:hover,
.share-button--email:focus { background-color: #EA4335; border-color: #EA4335; color: #fff; }

.share-button--copy { border-color: #483268; color: #483268; }
.share-button--copy:hover,
.share-button--copy:focus { background-color: #483268; border-color: #483268; color: #fff; }

.share-button:hover,
.share-button:focus { outline: none; }

.share-button.copied { background-color: #4caf50; border-color: #4caf50; color: #fff; }

.share-button svg { width: 20px; height: 20px; }

/* ===== Responsive ===== */

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

    .event-card {
        flex-direction: column;
    }

    .event-card__link {
        flex-direction: column;
    }

    .event-card__image {
        width: 100%;
        height: 220px;
    }

    .event-card__image img { height: 100%; }

    .event-card__content { padding: 1.5rem; }

    .events-listing__title { font-size: 1.8rem; margin-bottom: 1.5rem; }

    .event-post h1 { font-size: 1.6rem; }

    .event-intro-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-post__body h2 { font-size: 1.3rem; }

    .author-bio { flex-direction: column; align-items: center; text-align: center; }
}
