/* EventBrite Integration Frontend Styles */
:root {
    --ebi-primary: #6c5ce7;
    --ebi-primary-dark: #5745d1;
    --ebi-secondary: #00b894;
    --ebi-secondary-dark: #00a884;
    --ebi-danger: #ff7675;
    --ebi-warning: #fdcb6e;
    --ebi-info: #74b9ff;
    --ebi-light: #f8f9fa;
    --ebi-dark: #2d3436;
    --ebi-grey: #b2bec3;
    --ebi-border-radius: 8px;
    --ebi-box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    --ebi-transition: all 0.3s ease;
}

.ebi-container {
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--ebi-dark);
}

/* Tabs Navigation */
.ebi-tabs {
    border-radius: var(--ebi-border-radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--ebi-box-shadow);
    margin-bottom: 30px;
}

.ebi-tab-nav {
    display: flex;
    background-color: white;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
}

.ebi-tab-button {
    padding: 18px 24px;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    transition: var(--ebi-transition);
    position: relative;
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ebi-tab-button:hover {
    color: var(--ebi-primary);
}

.ebi-tab-button.active {
    color: var(--ebi-primary);
}

.ebi-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--ebi-primary);
    border-radius: 3px 3px 0 0;
}

.ebi-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ebi-primary);
    color: white;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
}

.ebi-tab-content {
    padding: 30px;
}

.ebi-tab-pane {
    display: none;
}

.ebi-tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Events Grid */
.ebi-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-gap: 30px;
}

.ebi-event-card {
    border-radius: var(--ebi-border-radius);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--ebi-box-shadow);
    transition: var(--ebi-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ebi-event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.ebi-event-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.ebi-event-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.ebi-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ebi-event-card:hover .ebi-event-image img {
    transform: scale(1.1);
}

.ebi-event-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ebi-event-title {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ebi-dark);
}

.ebi-event-meta {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.ebi-event-date, .ebi-event-time, .ebi-event-venue {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.ebi-event-meta .dashicons {
    margin-right: 10px;
    color: var(--ebi-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ebi-event-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 20px;
}

.ebi-view-details {
    background-color: var(--ebi-primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--ebi-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.2);
}

.ebi-view-details:hover {
    background-color: var(--ebi-primary-dark);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

.ebi-no-events {
    padding: 40px 20px;
    text-align: center;
    background-color: white;
    border-radius: var(--ebi-border-radius);
    box-shadow: var(--ebi-box-shadow);
}

.ebi-no-events p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Modal styles */
.ebi-event-details-modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

.ebi-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--ebi-border-radius);
    width: 90%;
    max-width: 900px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ebi-close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: var(--ebi-transition);
}

.ebi-close-modal:hover {
    color: var(--ebi-primary);
    transform: rotate(90deg);
}

.ebi-event-header {
    position: relative;
}

.ebi-event-banner {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.ebi-event-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.ebi-event-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ebi-modal-inner {
    padding: 30px;
    overflow-y: auto;
}

.ebi-event-details h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--ebi-dark);
    line-height: 1.3;
}

.ebi-event-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
    background-color: var(--ebi-light);
    padding: 20px;
    border-radius: var(--ebi-border-radius);
}

.ebi-meta-item {
    margin-right: 30px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.ebi-meta-item .dashicons {
    margin-right: 10px;
    color: var(--ebi-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ebi-meta-label {
    font-weight: 600;
    margin-right: 5px;
    color: var(--ebi-dark);
}

.ebi-meta-value {
    color: #666;
}

.ebi-event-description {
    margin-bottom: 30px;
}

.ebi-event-description h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--ebi-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ebi-description-content {
    line-height: 1.7;
    color: #444;
}

.ebi-description-content p {
    margin-bottom: 15px;
}

.ebi-event-attendees {
    margin-bottom: 30px;
}

.ebi-event-attendees h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--ebi-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ebi-attendees-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 15px;
    margin-bottom: 30px;
}

.ebi-attendee-item {
    padding: 15px;
    background-color: var(--ebi-light);
    border-radius: var(--ebi-border-radius);
    transition: var(--ebi-transition);
}

.ebi-attendee-item:hover {
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.ebi-attendee-name {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--ebi-dark);
}

.ebi-attendee-email {
    display: block;
    font-size: 13px;
    color: #666;
}

.ebi-register-form {
    background-color: white;
    padding: 25px;
    border-radius: var(--ebi-border-radius);
    box-shadow: var(--ebi-box-shadow);
}

.ebi-register-form h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--ebi-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ebi-form-row {
    margin-bottom: 20px;
}

.ebi-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--ebi-dark);
}

.ebi-form-row input[type="text"],
.ebi-form-row input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--ebi-border-radius);
    font-size: 15px;
    transition: var(--ebi-transition);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.ebi-form-row input[type="text"]:focus,
.ebi-form-row input[type="email"]:focus {
    border-color: var(--ebi-primary);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
    outline: none;
}

.ebi-register-button {
    background-color: var(--ebi-primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--ebi-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.2);
    display: inline-block;
}

.ebi-register-button:hover {
    background-color: var(--ebi-primary-dark);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

.ebi-login-prompt {
    background-color: var(--ebi-light);
    padding: 25px;
    border-radius: var(--ebi-border-radius);
    text-align: center;
}

.ebi-login-prompt p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
}

.ebi-login-button {
    display: inline-block;
    background-color: var(--ebi-primary);
    color: white;
    border-radius: 30px;
    padding: 12px 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--ebi-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.2);
}

.ebi-login-button:hover {
    background-color: var(--ebi-primary-dark);
    color: white;
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

.ebi-eventbrite-button {
    display: inline-block;
    background-color: var(--ebi-secondary);
    color: white;
    border-radius: 30px;
    padding: 12px 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--ebi-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 184, 148, 0.2);
}

.ebi-eventbrite-button:hover {
    background-color: var(--ebi-secondary-dark);
    color: white;
    box-shadow: 0 6px 15px rgba(0, 184, 148, 0.3);
    transform: translateY(-2px);
}

#ebi-registration-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--ebi-border-radius);
    font-weight: 500;
}

#ebi-registration-result.success {
    background-color: rgba(0, 184, 148, 0.1);
    color: var(--ebi-secondary-dark);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

#ebi-registration-result.error {
    background-color: rgba(255, 118, 117, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(255, 118, 117, 0.2);
}

/* QR Code Styles */
.ebi-qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.ebi-qr-code img {
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px;
    background-color: white;
}

.ebi-qr-link {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    word-break: break-all;
    text-align: center;
}

.ebi-verification-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: var(--ebi-border-radius);
    box-shadow: var(--ebi-box-shadow);
}

.ebi-scanner-container {
    margin-bottom: 30px;
    text-align: center;
}

.ebi-scanner-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--ebi-dark);
}

#ebi-qr-reader {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid #eee;
    border-radius: var(--ebi-border-radius);
    overflow: hidden;
    box-shadow: var(--ebi-box-shadow);
}

#ebi-scan-result {
    margin-top: 20px;
}

.ebi-success {
    background-color: rgba(0, 184, 148, 0.1);
    color: var(--ebi-secondary-dark);
    border: 1px solid rgba(0, 184, 148, 0.2);
    border-radius: var(--ebi-border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.ebi-success h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--ebi-secondary-dark);
    font-size: 20px;
}

.ebi-error {
    background-color: rgba(255, 118, 117, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(255, 118, 117, 0.2);
    border-radius: var(--ebi-border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.ebi-error h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #e74c3c;
    font-size: 20px;
}

.ebi-attendee-card {
    background-color: white;
    border-radius: var(--ebi-border-radius);
    padding: 25px;
    margin-top: 20px;
    box-shadow: var(--ebi-box-shadow);
}

.ebi-attendee-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ebi-attendee-card p {
    margin: 10px 0;
    line-height: 1.6;
}

.ebi-already-used {
    border-left: 4px solid var(--ebi-danger);
}

.ebi-valid {
    border-left: 4px solid var(--ebi-secondary);
}

.ebi-instruction-note {
    background-color: var(--ebi-light);
    border-radius: var(--ebi-border-radius);
    padding: 15px;
    margin-top: 20px;
    font-size: 15px;
}

.ebi-success-note {
    background-color: rgba(0, 184, 148, 0.1);
    color: var(--ebi-secondary-dark);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

#ebi-scan-controls {
    margin-top: 25px;
}

#ebi-scan-another {
    background-color: var(--ebi-primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--ebi-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.2);
}

#ebi-scan-another:hover {
    background-color: var(--ebi-primary-dark);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

.ebi-ticket-info {
    background-color: white;
    border-radius: var(--ebi-border-radius);
    padding: 30px;
    box-shadow: var(--ebi-box-shadow);
}

.ebi-ticket-info h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--ebi-dark);
    font-size: 24px;
    font-weight: 700;
}

.ebi-event-date {
    color: #666;
    font-style: italic;
    margin-bottom: 25px;
    font-size: 16px;
}

.ebi-ticket-details {
    margin-top: 25px;
    background-color: var(--ebi-light);
    padding: 20px;
    border-radius: var(--ebi-border-radius);
}

.ebi-status-used {
    color: var(--ebi-danger);
    font-weight: bold;
}

.ebi-status-active {
    color: var(--ebi-secondary);
    font-weight: bold;
}

.ebi-ticket-error {
    background-color: white;
    border-radius: var(--ebi-border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--ebi-box-shadow);
}

.ebi-ticket-error h2 {
    color: var(--ebi-danger);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}

.ebi-verification-instructions {
    background-color: white;
    border-radius: var(--ebi-border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--ebi-box-shadow);
}

.ebi-verification-instructions h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--ebi-dark);
    font-size: 24px;
    font-weight: 700;
}

.ebi-verification-instructions p {
    margin-bottom: 15px;
    font-size: 16px;
}

.ebi-verification-instructions .button {
    background-color: var(--ebi-primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--ebi-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.2);
    display: inline-block;
    text-decoration: none;
    margin-top: 10px;
}

.ebi-verification-instructions .button:hover {
    background-color: var(--ebi-primary-dark);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .ebi-tab-nav {
        flex-direction: column;
        padding: 0;
    }
    
    .ebi-tab-button {
        text-align: left;
        padding: 15px 20px;
        margin-right: 0;
        border-bottom: 1px solid #eee;
    }
    
    .ebi-tab-button.active {
        border-bottom: 1px solid #eee;
    }
    
    .ebi-tab-button.active::after {
        bottom: 0;
        left: 0;
        width: 4px;
        height: 100%;
        border-radius: 0;
    }
    
    .ebi-tab-content {
        padding: 20px;
    }
    
    .ebi-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .ebi-event-banner {
        height: 200px;
    }
    
    .ebi-modal-inner {
        padding: 20px;
    }
    
    .ebi-event-details h2 {
        font-size: 22px;
    }
    
    .ebi-meta-item {
        flex-basis: 100%;
    }
    
    .ebi-attendees-list {
        grid-template-columns: 1fr;
    }
    
    #ebi-qr-reader {
        max-width: 100%;
    }
    
    .ebi-verification-container,
    .ebi-ticket-info,
    .ebi-ticket-error,
    .ebi-verification-instructions {
        padding: 20px;
    }
}