/* Calendar Styles */

.calendar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #dc2626;
}

@media (max-width: 768px) {
    .calendar-header-row {
        margin-top: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.calendar-title {
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
    margin: 0;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 8px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.view-btn.active {
    background: white;
    color: #dc2626;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-error-banner {
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-error-banner .error-message {
    color: #991b1b;
    font-weight: 500;
}

.calendar-error-banner .error-close {
    background: none;
    border: none;
    color: #991b1b;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    line-height: 1;
}

.practices-container {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.practice-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.practice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.practice-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.practice-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.practice-date {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc2626;
}

.practice-time {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.practice-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.practice-description {
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.875rem;
    text-align: right;
}

.practice-location-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Venue and address wrapper */
.practice-venue-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.practice-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #374151;
    font-weight: 500;
}

.practice-location::before {
    content: "📍";
}

.practice-address {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Address link styling */
.practice-address .maps-link {
    color: #dc2626;
    text-decoration: none;
    transition: color 0.2s;
}

.practice-address .maps-link:hover {
    color: #991b1b;
    text-decoration: underline;
}

.practice-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.tab:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tab.active {
    background-color: rgba(0, 0, 0, 0.08);
}

.tab-count {
    font-size: 1.5rem;
    font-weight: bold;
}

.tab:nth-child(1) .tab-count {
    color: #10b981;
}

.tab:nth-child(2) .tab-count {
    color: #f59e0b;
}

.tab:nth-child(3) .tab-count {
    color: #ef4444;
}

.tab-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 500;
}

.rsvp-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #f3f4f6;
}

.rsvp-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rsvp-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rsvp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rsvp-btn.yes {
    border-color: #10b981;
    color: #10b981;
}

.rsvp-btn.yes.selected {
    background: #10b981;
    color: white;
}

.rsvp-btn.maybe {
    border-color: #f59e0b;
    color: #f59e0b;
}

.rsvp-btn.maybe.selected {
    background: #f59e0b;
    color: white;
}

.rsvp-btn.no {
    border-color: #ef4444;
    color: #ef4444;
}

.rsvp-btn.no.selected {
    background: #ef4444;
    color: white;
}

.rsvp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rsvp-btn .emoji {
    font-size: 1.2rem;
}

.attendees-section {
    margin-bottom: 0.75rem;
}

.attendees-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.no-attendees {
    text-align: left;
    padding: 0.5rem;
    color: #9ca3af;
    font-style: italic;
    font-size: 0.875rem;
}

.attendee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
}

.attendee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.attendee-name {
    font-weight: 500;
    color: #374151;
}

.no-practices {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

/* Calendar View Styles */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-nav h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.nav-btn {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background: #f9fafb;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
}

.calendar-day {
    background: white;
    min-height: 100px;
    padding: 0.5rem;
    position: relative;
}

.calendar-day.empty {
    background: #f9fafb;
}

.calendar-day.today {
    background: #fef3c7;
}

.day-number {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

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

.day-practice {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #e5e7eb;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s;
}

.day-practice:hover {
    opacity: 0.8;
}

.day-practice.yes {
    background: #d1fae5;
    color: #065f46;
    border-left: 3px solid #10b981;
}

.day-practice.maybe {
    background: #fef3c7;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.day-practice.no {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

/* Pill-style practice indicators for calendar view */
.day-practice-pill {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.day-practice-pill:hover {
    transform: scaleY(1.2);
    opacity: 0.9;
}

/* Default state - gray pill when no RSVP */
.day-practice-pill.none {
    background: #9ca3af;
}

/* Yes RSVP - green pill */
.day-practice-pill.yes {
    background: #10b981;
}

/* Maybe RSVP - yellow/amber pill */
.day-practice-pill.maybe {
    background: #f59e0b;
}

/* No RSVP - red pill */
.day-practice-pill.no {
    background: #ef4444;
}

/* Responsive design */
@media (max-width: 768px) {
    .practice-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .practice-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Stack venue and address vertically on mobile */
    .practice-venue-address {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .practice-address {
        margin-left: 1.25rem;
        font-size: 0.8rem;
    }

    .practice-tabs {
        flex-direction: row;
        gap: 0.5rem;
    }

    .rsvp-buttons {
        flex-direction: column;
    }

    .rsvp-btn {
        width: 100%;
    }
}
