/* Additional styles for the pickleball club website */

/* Carousel styles */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.carousel-slides {
    display: flex;
    position: relative;
    height: 400px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
}

/* Event styles */
#events-container {
    padding: 1rem 0;
}

.loading-events {
    text-align: center;
    padding: 2rem;
    background-color: var(--gray-100);
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.event-month {
    margin-bottom: 2rem;
}

.month-header {
    font-size: 1.5rem;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.event-card, .event-item {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.event-emoji {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.event-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0.5rem 0;
}

.event-details {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.event-time, .event-location {
    color: var(--gray-700);
    font-size: 0.9rem;
}

.event-format-type {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.month-header {
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.event-item {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.event-date {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.event-item h3 {
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.event-notes {
    font-style: italic;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.event-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.event-type, .event-format {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.event-type {
    background-color: var(--primary-light);
    color: var(--primary);
}

.event-format {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

.event-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.event-link:hover {
    text-decoration: underline;
}

.register-btn {
    margin-top: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.register-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.registration-closed {
    margin-top: 1rem;
    color: var(--danger);
    font-weight: 600;
}

.no-events {
    text-align: center;
    padding: 3rem 0;
    color: var(--gray-500);
}

/* Admin controls */
.admin-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.admin-control-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.admin-control-btn.edit {
    background: var(--primary);
    color: white;
}

.admin-control-btn.delete {
    background: var(--danger);
    color: white;
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
}

/* Button styles */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-800);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--gray-300);
    transform: translateY(-1px);
}

/* Notification component */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.notification.success {
    background: var(--success);
    color: white;
}

.notification.error {
    background: var(--danger);
    color: white;
}

.notification.warning {
    background: var(--warning);
    color: white;
}

.notification.info {
    background: var(--primary);
    color: white;
}

@keyframes slideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Admin login styles */
.admin-login {
    max-width: 500px;
    margin: 2rem auto;
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}
