/* Event Manager Frontend Styles */

.event-manager-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px; /* Increased base font size */
}

.event-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.event-manager-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 3em; /* Increased from 2.5em */
}

.event-manager-nav a {
    margin-left: 15px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em; /* Increased font size */
}

.event-manager-nav a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Event Submission Form */
.event-submission-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.event-submission-form h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px; /* Increased from 14px */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    outline: 0;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-actions {
    margin-top: 25px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 0;
    font-size: 16px; /* Increased from 14px */
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0056b3;
    border-color: #004085;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    color: #fff;
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-warning {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-warning:hover {
    color: #212529;
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #545b62;
    border-color: #4e555b;
}

/* Events List */
.events-list h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 2em;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.event-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.event-header {
    margin-bottom: 15px;
}

.event-title {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.5em; /* Increased from 1.3em */
    line-height: 1.3;
}

.event-meta {
    display: flex;
    gap: 15px;
    font-size: 1em; /* Increased from 0.9em */
    color: #6c757d;
}

.event-date {
    font-weight: 600;
}

.event-table {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 1em; /* Increased from 0.9em */ /* Increased from 0.8em */
}

.event-content {
    margin-bottom: 15px;
}

.event-host,
.event-contact,
.event-discord {
    margin-bottom: 8px;
    font-size: 1em; /* Increased from 0.9em */
}

.event-description {
    margin: 15px 0;
    line-height: 1.5;
    color: #495057;
}

.event-seats {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.seats-info {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1em; /* Increased from 0.9em */
}

.seats-count {
    font-weight: 600;
    color: #2c3e50;
}

.seats-full {
    color: #dc3545;
    font-weight: 600;
}

.waitlist-count {
    color: #ffc107;
    font-weight: 600;
}

.event-rsvp {
    margin-top: 15px;
}

.rsvp-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rsvp-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rsvp-count {
    font-weight: 600;
    color: #2c3e50;
}

.event-full {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 1em; /* Increased from 0.9em */ /* Increased from 0.8em */
    font-weight: 600;
}

.rsvp-buttons .btn {
    font-size: 1em; /* Increased from 0.9em */
    padding: 8px 16px;
}

.event-login-required {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.event-login-required p {
    margin: 0 0 10px 0;
    color: #6c757d;
}

/* Pagination */
.events-pagination {
    text-align: center;
    margin-top: 30px;
}

.events-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
}

.events-pagination .page-numbers:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.events-pagination .page-numbers.current {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* Messages */
.message {
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: 500;
}

.message.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* No Events */
.no-events {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .event-manager-container {
        padding: 15px;
    }
    
    .event-manager-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .event-manager-header h1 {
        font-size: 2em;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .rsvp-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rsvp-info {
        justify-content: center;
    }
    
    .attendee-contact {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .attendee-email,
    .attendee-discord {
        font-size: 0.85em; /* Increased from 0.75em */
    }
}

/* Shortcode Styles */
.event-manager-shortcode {
    margin: 20px 0;
}

.event-manager-shortcode .event-submission-section {
    margin-bottom: 30px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Attendee List Styles */
.event-attendees {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.event-attendees h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.event-attendees h5 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 1em; /* Increased from 0.9em */
    font-weight: 600;
}

.attendees-list,
.waitlist-list {
    margin-bottom: 15px;
}

.attendees-confirmed,
.attendees-waitlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attendee-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.95em; /* Increased from 0.85em */
    border: 1px solid #e9ecef;
}

.attendee-main {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.attendee-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.attendee-email,
.attendee-discord {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1em; /* Increased from 0.8em */
    color: #6c757d;
}

.attendee-email i,
.attendee-discord i {
    font-size: 1em; /* Increased from 0.9em */
    opacity: 0.7;
}


.attendee-badge {
    background: #007bff;
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.85em; /* Increased from 0.75em */
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.attendees-waitlist .attendee-item {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.attendees-waitlist .attendee-badge {
    background: #ffc107;
    color: #212529;
}

.no-attendees {
    color: #6c757d;
    font-style: italic;
    margin: 0;
    font-size: 1em; /* Increased from 0.9em */
}

