/* Kevents Frontend Styles - MIDANCE EDITION */

/* ===== General Midance Brand Styles ===== */
.kevents-events-container {
    margin: 20px 0;
    background-color: #0F0F0F;
    color: #FFFFFF;
}

.kevents-events-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.kevents-columns-1 .kevents-events-grid {
    grid-template-columns: 1fr;
}

.kevents-columns-2 .kevents-events-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 100%;
}

.kevents-columns-3 .kevents-events-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.kevents-columns-4 .kevents-events-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.kevents-events-list .kevents-event-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.kevents-events-list .kevents-event-item:last-child {
    border-bottom: none;
}

/* ===== Event Item Styles ===== */
.kevents-event-item {
    background: #1A1A1A;
    border: 1px solid #5B5B5B;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kevents-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.kevents-event-image {
    position: relative;
    overflow: hidden;
}

.kevents-event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kevents-event-item:hover .kevents-event-image img {
    transform: scale(1.05);
}

.kevents-event-content {
    padding: 20px;
}

.kevents-event-title {
    margin: 0 0 15px 0;
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.3;
}

.kevents-event-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kevents-event-title a:hover {
    color: #EA3323;
}

.kevents-event-date,
.kevents-event-location,
.kevents-event-rsvp {
    margin: 8px 0;
    font-size: 0.9em;
    color: #FFFFFF;
    display: flex;
    align-items: center;
}

.kevents-event-date i,
.kevents-event-location i,
.kevents-event-rsvp i {
    margin-right: 8px;
    width: 16px;
    color: #EA3323;
}

.kevents-event-excerpt {
    margin: 15px 0;
    color: #FFFFFF;
    line-height: 1.5;
}

.kevents-event-read-more {
    margin-top: 15px;
}

.kevents-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #EA3323;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.kevents-btn:hover {
    background: #d42b1a;
    color: #FFFFFF;
}

/* ===== RSVP Form Styles ===== */
.kevents-rsvp-form-container {
    background: #1A1A1A;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid #5B5B5B;
}

/* ===== Existing User Login Styles ===== */
.kevents-existing-user-login {
    background: #1A1A1A;
    border: 2px solid #EA3323;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kevents-existing-user-notice {
    margin-bottom: 20px;
    text-align: center;
}

.kevents-existing-user-notice h4 {
    color: #FFFFFF;
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.kevents-existing-user-notice p {
    color: #FFFFFF;
    margin: 5px 0;
    font-size: 14px;
}

.kevents-existing-user-notice small {
    font-style: italic;
    opacity: 0.8;
}

.kevents-profile-login-form .kevents-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.kevents-login-submit {
    background: #EA3323 !important;
    color: #FFFFFF !important;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.kevents-login-submit:hover {
    background: #d42b1a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 51, 35, 0.4);
}

.kevents-login-submit:disabled {
    background: #ccc !important;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.kevents-login-cancel {
    background: #5B5B5B;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.kevents-login-cancel:hover {
    background: #4a4a4a;
}

.kevents-login-messages {
    margin-top: 15px;
}

/* ===== Profile Notices & Status Messages ===== */
.kevents-notice {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 15px 0;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.5;
}

.kevents-notice h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.kevents-notice p {
    margin: 0 0 8px 0;
}

.kevents-notice p:last-child {
    margin-bottom: 0;
}

.kevents-notice-info {
    background: #e7f3ff;
    border-color: #b3d4fc;
    color: #0073aa;
}

.kevents-notice-info h4 {
    color: #0073aa;
}

.kevents-notice-warning {
    background: #fff7e6;
    border-color: #f0ad4e;
    color: #8a6914;
}

.kevents-notice-warning h4 {
    color: #d2691e;
}

.kevents-notice-error {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.kevents-notice-error h4 {
    color: #d32f2f;
}

.kevents-notice-success {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.kevents-notice-success h4 {
    color: #388e3c;
}

/* Profile Notice Responsive */
@media (max-width: 768px) {
    .kevents-notice {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .kevents-notice h4 {
        font-size: 15px;
    }
}

.kevents-rsvp-form-container h3 {
    margin: 0 0 20px 0;
    color: #FFFFFF;
    font-size: 1.5em;
}

.kevents-rsvp-form {
    max-width: 600px;
}

.kevents-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.kevents-form-field {
    margin-bottom: 20px;
}

.kevents-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #FFFFFF;
}

.kevents-form-field input,
.kevents-form-field textarea,
.kevents-form-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #5B5B5B;
    border-radius: 4px;
    font-size: 14px;
    background: #0F0F0F;
    color: #FFFFFF;
    transition: border-color 0.3s ease;
}

.kevents-form-field input:focus,
.kevents-form-field textarea:focus,
.kevents-form-field select:focus {
    outline: none;
    border-color: #EA3323;
    box-shadow: 0 0 0 2px rgba(234, 51, 35, 0.2);
}

.kevents-form-field input.kevents-error,
.kevents-form-field textarea.kevents-error,
.kevents-form-field select.kevents-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.kevents-form-field input.kevents-error:focus,
.kevents-form-field textarea.kevents-error:focus,
.kevents-form-field select.kevents-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.kevents-form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.kevents-form-actions {
    margin-top: 30px;
}

.kevents-rsvp-submit {
    background: #EA3323;
    color: #FFFFFF;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.kevents-rsvp-submit:hover {
    background: #d42b1a;
}

.kevents-rsvp-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.kevents-form-messages {
    margin-top: 20px;
}

.kevents-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: block;
    animation: slideIn 0.3s ease-out;
    font-size: 0.9em;
    line-height: 1.5;
}

.kevents-message.kevents-success {
    background: #EA3323;
    color: #FFFFFF;
    border: 1px solid #d42b1a;
    box-shadow: 0 2px 8px rgba(234, 51, 35, 0.3);
}

.kevents-message.kevents-error {
    background: #d42b1a;
    color: #FFFFFF;
    border: 1px solid #b91e0f;
    box-shadow: 0 2px 8px rgba(212, 43, 26, 0.3);
}

.kevents-message.kevents-info {
    background: #1A1A1A;
    color: #FFFFFF;
    border: 1px solid #5B5B5B;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.3);
}

.kevents-message.kevents-warning {
    background: #b85c16;
    color: #FFFFFF;
    border: 1px solid #9c4e12;
    box-shadow: 0 2px 8px rgba(184, 92, 22, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Thank You Message Styles ===== */
.kevents-thank-you {
    background: #EA3323;
    border: 1px solid #d42b1a;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    animation: slideIn 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(234, 51, 35, 0.3);
}

.kevents-thank-you h4 {
    margin: 0 0 15px 0;
    color: #FFFFFF;
    font-size: 1.1em;
    font-weight: 600;
}

.kevents-thank-you p {
    margin: 0;
    color: #FFFFFF;
    font-size: 0.9em;
    line-height: 1.5;
}

/* ===== Single Event Styles ===== */
.kevents-single-event {
    margin: 30px 0;
}

.kevents-event-details {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    margin: 30px 0;
}

.kevents-event-meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.kevents-event-meta > div {
    margin-bottom: 15px;
}

.kevents-event-meta > div:last-child {
    margin-bottom: 0;
}

.kevents-event-meta strong {
    color: #333;
    font-weight: 600;
}

.kevents-participants {
    display: flex;
    align-items: center;
    gap: 5px;
}

.kevents-rsvp-count {
    font-weight: 600;
    color: #007cba;
}

/* ===== Map Styles ===== */
.kevents-event-map {
    margin: 30px 0;
}

.kevents-event-map h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.kevents-map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e1e1e1;
}

/* ===== Loading States ===== */
.kevents-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: kevents-spin 1s linear infinite;
}

@keyframes kevents-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .kevents-events-grid {
        grid-template-columns: 1fr;
    }
    
    .kevents-form-row {
        grid-template-columns: 1fr;
    }
    
    .kevents-event-content {
        padding: 15px;
    }
    
    .kevents-rsvp-form-container {
        padding: 20px;
    }
    
    .kevents-event-details {
        padding: 20px;
    }
    
    .kevents-event-info-horizontal {
        flex-direction: column;
        gap: 10px;
    }
    
    .kevents-event-info-inline .kevents-info-item {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .kevents-layout-horizontal {
        flex-direction: column;
        gap: 10px;
    }
    
    .kevents-layout-horizontal .kevents-event-date,
    .kevents-layout-horizontal .kevents-event-time,
    .kevents-layout-horizontal .kevents-event-location,
    .kevents-layout-horizontal .kevents-event-address {
        min-width: auto;
        margin-bottom: 12px;
    }
    
    .kevents-layout-inline .kevents-event-date,
    .kevents-layout-inline .kevents-event-time,
    .kevents-layout-inline .kevents-event-location,
    .kevents-layout-inline .kevents-event-address {
        display: block;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .kevents-rsvp-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .kevents-event-image img {
        height: 150px;
    }
    
    .kevents-event-title {
        font-size: 1.1em;
    }
    
    .kevents-rsvp-submit {
        width: 100%;
        padding: 12px;
    }
}

/* Event Info Widget & Shortcode Styles */
.kevents-event-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
}

.kevents-event-info .kevents-event-date,
.kevents-event-info .kevents-event-time,
.kevents-event-info .kevents-event-location,
.kevents-event-info .kevents-event-address {
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.kevents-event-info .kevents-event-date:last-child,
.kevents-event-info .kevents-event-time:last-child,
.kevents-event-info .kevents-event-location:last-child,
.kevents-event-info .kevents-event-address:last-child {
    margin-bottom: 0;
}

.kevents-event-info .kevents-event-date i,
.kevents-event-info .kevents-event-time i,
.kevents-event-info .kevents-event-location i,
.kevents-event-info .kevents-event-address i {
    margin-right: 10px;
    color: #007cba;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* Layout Variations */
.kevents-layout-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.kevents-layout-horizontal .kevents-event-date,
.kevents-layout-horizontal .kevents-event-time,
.kevents-layout-horizontal .kevents-event-location,
.kevents-layout-horizontal .kevents-event-address {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0;
}

.kevents-layout-inline .kevents-event-date,
.kevents-layout-inline .kevents-event-time,
.kevents-layout-inline .kevents-event-location,
.kevents-layout-inline .kevents-event-address {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 8px;
}

.kevents-layout-inline .kevents-event-date:last-child,
.kevents-layout-inline .kevents-event-time:last-child,
.kevents-layout-inline .kevents-event-location:last-child,
.kevents-layout-inline .kevents-event-address:last-child {
    margin-right: 0;
}

/* Error state */
.kevents-error {
    color: #dc3545;
    font-size: 14px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* RSVP Form Widget Styles */
.kevents-rsvp-form {
    background: #1A1A1A;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #5B5B5B;
    margin-bottom: 20px;
}

.kevents-rsvp-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-size: 1.5em;
}

.kevents-rsvp-description {
    margin-bottom: 20px;
    color: #FFFFFF;
}

.kevents-rsvp-count {
    background: #1A1A1A;
    padding: 10px 15px;
    border: 1px solid #5B5B5B;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.3);
}

.kevents-rsvp-count strong {
    color: #EA3323;
}

.kevents-max-participants {
    color: #FFFFFF;
}

.kevents-rsvp-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9em;
    line-height: 1.5;
}

.kevents-rsvp-message.kevents-rsvp-closed {
    background: #b85c16;
    color: #FFFFFF;
    border: 1px solid #9c4e12;
    box-shadow: 0 2px 8px rgba(184, 92, 22, 0.3);
}

.kevents-rsvp-message.kevents-rsvp-full {
    background: #d42b1a;
    color: #FFFFFF;
    border: 1px solid #b91e0f;
    box-shadow: 0 2px 8px rgba(212, 43, 26, 0.3);
}

.kevents-rsvp-fields {
    display: grid;
    gap: 15px;
}

.kevents-form-group {
    display: flex;
    flex-direction: column;
}

.kevents-form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #FFFFFF;
}

.kevents-form-group input,
.kevents-form-group textarea {
    padding: 10px;
    border: 1px solid #5B5B5B;
    border-radius: 4px;
    font-size: 14px;
    background: #0F0F0F;
    color: #FFFFFF;
}

.kevents-form-group input:focus,
.kevents-form-group textarea:focus {
    outline: none;
    border-color: #EA3323;
    box-shadow: 0 0 0 2px rgba(234, 51, 35, 0.2);
}

.kevents-form-group .required {
    color: #d63384;
}

.kevents-form-actions {
    margin-top: 20px;
    text-align: center;
}

.kevents-rsvp-submit {
    background: #EA3323;
    color: #FFFFFF;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.kevents-rsvp-submit:hover {
    background: #d42b1a;
}

.kevents-rsvp-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    .kevents-event-info-horizontal {
        flex-direction: column;
        gap: 10px;
    }
    
    .kevents-event-info-inline .kevents-info-item {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .kevents-layout-horizontal {
        flex-direction: column;
        gap: 10px;
    }
    
    .kevents-layout-horizontal .kevents-event-date,
    .kevents-layout-horizontal .kevents-event-time,
    .kevents-layout-horizontal .kevents-event-location,
    .kevents-layout-horizontal .kevents-event-address {
        min-width: auto;
        margin-bottom: 12px;
    }
    
    .kevents-layout-inline .kevents-event-date,
    .kevents-layout-inline .kevents-event-time,
    .kevents-layout-inline .kevents-event-location,
    .kevents-layout-inline .kevents-event-address {
        display: block;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .kevents-rsvp-form {
        padding: 20px;
    }
} 
/* ===== GDPR Privacy Consent Styles ===== */
.kevents-privacy-row {
    background: #1A1A1A;
    border: 2px solid #5B5B5B;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    /* ✅ FULL WIDTH: Usa tutta la larghezza del form */
    grid-column: 1 / -1; /* Span across all columns in grid */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; /* Include padding in width calculation */
    display: block; /* Ensure block layout for content */
}

.kevents-privacy-field {
    margin-bottom: 0;
    width: 100% !important; /* Full width within the privacy row */
    max-width: 100% !important; /* Ensure no max-width restrictions */
    flex: 1; /* Take all available space if flex container */
    display: block; /* Ensure block-level display */
}

.kevents-privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    width: 100%; /* Use full width available */
    max-width: 100%;
    box-sizing: border-box;
}

.kevents-privacy-checkbox input[type="checkbox"] {
    margin: 0;
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #EA3323;
    cursor: pointer;
}

.kevents-privacy-label {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #FFFFFF;
    cursor: pointer;
}

.kevents-privacy-label .kevents-required {
    color: #EA3323;
    font-weight: bold;
}

.kevents-privacy-link {
    color: #EA3323;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.kevents-privacy-link:hover {
    color: #d42b1a;
    text-decoration: none;
}

.kevents-privacy-info {
    margin-left: 30px; /* Align with checkbox text */
    margin-top: 8px; /* Space from checkbox above */
    margin-bottom: 0;
    padding: 12px 16px; /* Internal padding for better spacing */
    background: rgba(15, 15, 15, 0.7); /* Subtle dark background */
    border-left: 3px solid #EA3323; /* Visual separator */
    border-radius: 0 6px 6px 0; /* Rounded corners on right */
    color: #FFFFFF;
    font-style: italic;
    width: calc(100% - 30px); /* Full width minus margin-left */
    max-width: calc(100% - 30px);
    box-sizing: border-box;
}

.kevents-privacy-info small {
    font-size: 12px;
    line-height: 1.4;
}

/* Privacy validation error styles */
.kevents-privacy-error {
    border-color: #EA3323 !important;
    background: #2A0F0F;
}

.kevents-privacy-error .kevents-privacy-label {
    color: #EA3323;
}

/* Focus styles for accessibility */
.kevents-privacy-checkbox input[type="checkbox"]:focus {
    outline: 2px solid #EA3323;
    outline-offset: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .kevents-privacy-row {
        padding: 15px;
        margin: 12px 0;
    }
    
    .kevents-privacy-checkbox {
        gap: 10px;
    }
    
    .kevents-privacy-label {
        font-size: 13px;
    }
    
    .kevents-privacy-info {
        margin-left: 28px; /* Adjust for mobile gap */
        margin-top: 6px; /* Less space on mobile */
        padding: 10px 12px; /* Smaller padding on mobile */
        width: calc(100% - 28px); /* Adjust width for mobile margin */
        max-width: calc(100% - 28px);
    }
    
    .kevents-privacy-info small {
        font-size: 11px;
    }
}

/* ===== Participants List Styles - Midance Edition ===== */

/* Container */
.kevents-participants-container {
    margin: 30px 0;
    padding: 20px;
    background: #0F0F0F;
    border-radius: 12px;
}

/* Grid Layout */
.kevents-participants-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.kevents-participants-grid.kevents-columns-1 {
    grid-template-columns: 1fr;
}

.kevents-participants-grid.kevents-columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.kevents-participants-grid.kevents-columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.kevents-participants-grid.kevents-columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* List Layout */
.kevents-participants-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Layout */
.kevents-participants-card {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Participant Card */
.kevents-participant-card {
    background: linear-gradient(135deg, #1A1A1A 0%, #0F0F0F 100%);
    border: 2px solid #EA3323;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(234, 51, 35, 0.2);
}

.kevents-participant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(234, 51, 35, 0.4);
    border-color: #FF4433;
}

/* Participant Image */
.kevents-participant-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #2A2A2A;
}

.kevents-participant-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.kevents-participant-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kevents-participant-card:hover .kevents-participant-image img {
    transform: scale(1.05);
}

/* Participant Info */
.kevents-participant-info {
    padding: 20px;
    text-align: center;
}

/* Participant Name */
.kevents-participant-name {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
}

.kevents-participant-name a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kevents-participant-name a:hover {
    color: #EA3323;
}

/* Job Title */
.kevents-participant-job-title {
    margin: 8px 0;
    padding: 6px 12px;
    background: rgba(234, 51, 35, 0.15);
    border: 1px solid #EA3323;
    border-radius: 20px;
    color: #EA3323;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* About Text */
.kevents-participant-about {
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #CCCCCC;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

/* Social Links */
.kevents-participant-social {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.kevents-participant-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(234, 51, 35, 0.1);
    border: 1px solid #EA3323;
    border-radius: 50%;
    color: #EA3323;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kevents-participant-social a:hover {
    background: #EA3323;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* View Profile Button */
.kevents-participant-link {
    margin-top: 15px;
}

.kevents-participant-link .kevents-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #EA3323 0%, #C72A1C 100%);
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(234, 51, 35, 0.3);
}

.kevents-participant-link .kevents-btn:hover {
    background: linear-gradient(135deg, #FF4433 0%, #EA3323 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 51, 35, 0.5);
}

/* Basic Participant Card (without profile) */
.kevents-participant-basic {
    opacity: 0.8;
}

.kevents-participant-basic .kevents-participant-image {
    padding-top: 100%;
}

/* Status Badge */
.kevents-participant-status {
    margin-top: 10px;
}

.kevents-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kevents-badge-confirmed {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

/* No Participants Message */
.kevents-no-participants {
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px dashed #5B5B5B;
}

.kevents-no-participants p {
    margin: 0;
    color: #CCCCCC;
    font-size: 16px;
}

/* List Layout Specific Styles */
.kevents-participants-list .kevents-participant-card {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.kevents-participants-list .kevents-participant-image {
    flex: 0 0 150px;
    padding-top: 0;
    height: 150px;
}

.kevents-participants-list .kevents-participant-info {
    flex: 1;
    text-align: left;
    padding: 20px 30px;
}

.kevents-participants-list .kevents-participant-link {
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .kevents-participants-grid.kevents-columns-4 {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .kevents-participants-grid.kevents-columns-3 {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .kevents-participants-container {
        padding: 15px;
    }
    
    .kevents-participants-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .kevents-participants-list .kevents-participant-card {
        flex-direction: column;
    }
    
    .kevents-participants-list .kevents-participant-image {
        flex: 0 0 auto;
        width: 100%;
        padding-top: 100%;
        height: auto;
    }
    
    .kevents-participants-list .kevents-participant-info {
        text-align: center;
        padding: 20px;
    }
    
    .kevents-participant-name {
        font-size: 18px;
    }
    
    .kevents-participant-link .kevents-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .kevents-participant-info {
        padding: 15px;
    }
    
    .kevents-participant-name {
        font-size: 16px;
    }
    
    .kevents-participant-job-title {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .kevents-participant-about {
        font-size: 13px;
        padding: 10px;
    }
}