/* GBRC Kids Rugby Calendar — Frontend Styles */
.gbrc-kids-calendar {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.gbrc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gbrc-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(90deg, #16a34a, #22c55e, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.25rem;
}

.gbrc-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.gbrc-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.gbrc-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 6px solid var(--card-color, #22c55e);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
}

.gbrc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.gbrc-card-date {
    background: var(--card-color, #22c55e);
    color: white;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    text-align: center;
}

.gbrc-card-date .day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.gbrc-card-date .month {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.95;
}

.gbrc-card-body {
    padding: 1.1rem 1.25rem;
    flex: 1;
}

.gbrc-card-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: #1e293b;
    line-height: 1.3;
}

.gbrc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #475569;
    margin: 0 0 0.6rem;
}

.gbrc-notes {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    color: #334155;
    margin: 0.5rem 0;
    border-left: 3px solid #e2e8f0;
}

.gbrc-content {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0.5rem 0;
}

.gbrc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tag.age {
    background: #dbeafe;
    color: #1d4ed8;
}

.tag.type {
    background: #dcfce7;
    color: #166534;
}

.gbrc-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
    font-size: 1.1rem;
    background: #f8fafc;
    border-radius: 12px;
}

/* Monthly calendar view */
.gbrc-month-view .gbrc-month-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 1rem 0 1.5rem;
}

.gbrc-nav-btn {
    background: #22c55e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.gbrc-nav-btn:hover {
    background: #16a34a;
}

.gbrc-current-month {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.gbrc-calendar-grid {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.gbrc-calendar-grid th {
    background: #f1f5f9;
    padding: 0.75rem 0.5rem;
    font-weight: 700;
    color: #475569;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
}

.gbrc-calendar-grid td {
    height: 100px;
    vertical-align: top;
    border: 1px solid #e2e8f0;
    padding: 0.4rem;
    position: relative;
}

.gbrc-day-num {
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.gbrc-empty-day {
    background: #f8fafc;
}

.gbrc-day.has-events {
    background: #f0fdf4;
}

.gbrc-day-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gbrc-event-pill {
    display: block;
    background: #fff;
    border-left: 4px solid #22c55e;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.gbrc-event-pill:hover {
    background: #f1f5f9;
}

@media (max-width: 640px) {
    .gbrc-events-grid {
        grid-template-columns: 1fr;
    }
    .gbrc-card {
        flex-direction: column;
    }
    .gbrc-card-date {
        flex-direction: row;
        min-width: auto;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    .gbrc-card-date .day {
        font-size: 1.5rem;
    }
    .gbrc-calendar-grid td {
        height: 70px;
        font-size: 0.8rem;
    }
    .gbrc-event-pill {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    .gbrc-month-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}
