/* BuddyPress Formidable Events - Frontend Styles */

/* Add Event Link */
.bpfe-add-event-link {
    margin: 20px 0;
}

.bpfe-add-event-link .button {
    display: inline-block;
    padding: 8px 16px;
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.bpfe-add-event-link .button:hover {
    background: #4338ca;
    color: #fff;
}

/* View Tabs */
.bpfe-view-tabs {
    margin: 20px 0;
}

.bpfe-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 2px solid #e5e7eb;
}

.bpfe-tabs-nav li {
    margin-right: 10px;
}

.bpfe-tabs-nav li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.bpfe-tabs-nav li a:hover {
    color: #4f46e5;
}

.bpfe-tabs-nav li.active a {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
    font-weight: 600;
}

/* Back to Events Link */
.bpfe-back-link {
    position: relative;
    top: -20px;
}

/* Events List Wrapper */
.bpfe-group-events-wrapper {
    margin: 20px 0;
}

.bpfe-list-view {
    margin-top: 20px;
}

/* Create Event Form */
.bpfe-create-event-form {
    background: #dfdcd2;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bpfe-create-event-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Event Cards in List View */
.bpfe-event-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}

.bpfe-event-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bpfe-event-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #4f46e5;
}

.bpfe-event-card .event-datetime {
    font-size: 14px;
    color: #6b7280;
    margin: 8px 0;
}

.bpfe-event-card .event-location {
    font-size: 14px;
    color: #6b7280;
    margin: 8px 0;
}

.bpfe-event-card .event-description {
    margin: 12px 0;
    color: #374151;
}

/* Registration Section */
.bpfe-registrations {
    margin-top: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.bpfe-registrations h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.bpfe-registered-users {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.bpfe-registered-user {
    text-align: center;
}

.bpfe-registered-user a {
    text-decoration: none;
    color: #374151;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bpfe-registered-user img {
    border-radius: 50%;
    border: 2px solid #e5e7eb;
}

.bpfe-registered-user:hover img {
    border-color: #4f46e5;
}

/* Registration Status */
.bpfe-registration-status {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.bpfe-registration-status.registered {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
}

.bpfe-registration-status .bpfe-success {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #065f46;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.bpfe-registration-status .dashicons {
    color: #059669;
}

/* Cancel Registration Button */
.bpfe-cancel-registration {
    background: #ef4444 !important;
    border-color: #dc2626 !important;
}

.bpfe-cancel-registration:hover {
    background: #dc2626 !important;
}

/* Registration Form */
.bpfe-registration-form {
    margin: 20px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

/* Calendar Export Buttons */
.bpfe-calendar-export {
    margin: 20px 0;
    padding: 15px;
    background: #eff6ff;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}

.bpfe-calendar-export p {
    margin: 0 0 10px 0;
}

.bpfe-calendar-export .button {
    margin-right: 10px;
}

/* No Registrations Message */
.bpfe-no-registrations {
    color: #6b7280;
    font-style: italic;
}

/* Event Past Message */
.bpfe-event-past {
    color: #6b7280;
    font-style: italic;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 4px;
}

/* Member Events on Profile */
.bpfe-member-events-wrapper {
    margin: 20px 0;
}

.bpfe-member-events-wrapper h3 {
    margin-bottom: 20px;
}

.bpfe-member-event {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.bpfe-member-event h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

.bpfe-member-event p {
    margin: 5px 0;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bpfe-registered-users {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .bpfe-event-card {
        padding: 15px;
    }
}