/* Spond Integration - Frontend Styles */

/* Event List View */
.spond-events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 20px 0;
}

.spond-event-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.spond-event-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.spond-event-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.spond-event-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.spond-event-content {
    flex: 1;
}

.spond-event-title {
    margin: 0 0 15px 0;
    font-size: 1.5em;
}

.spond-event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.spond-event-title a:hover {
    color: #0073aa;
}

.spond-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95em;
}

.spond-event-meta > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.spond-event-meta .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.spond-event-excerpt {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.spond-event-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.spond-event-link {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.spond-event-link-details {
    background: #f0f0f0;
    color: #333;
}

.spond-event-link-details:hover {
    background: #e0e0e0;
}

.spond-event-link-cta {
    background: #0073aa;
    color: #fff;
}

.spond-event-link-cta:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,115,170,0.3);
}

/* Grid View */
.spond-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.spond-event-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spond-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.spond-event-card-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

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

.spond-event-card:hover .spond-event-card-image img {
    transform: scale(1.05);
}

.spond-event-card-content {
    padding: 20px;
    position: relative;
}

.spond-event-card-date {
    position: absolute;
    top: -30px;
    right: 20px;
    background: #0073aa;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.spond-event-card-date .day {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1;
}

.spond-event-card-date .month {
    display: block;
    font-size: 0.9em;
    text-transform: uppercase;
    margin-top: 3px;
}

.spond-event-card-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.spond-event-card-title a {
    color: #333;
    text-decoration: none;
}

.spond-event-card-title a:hover {
    color: #0073aa;
}

.spond-event-card-time,
.spond-event-card-location {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

.spond-event-card-cta {
    display: block;
    margin-top: 15px;
    padding: 10px 16px;
    background: #0073aa;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.spond-event-card-cta:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

/* Calendar View */
.spond-calendar {
    margin: 20px 0;
}

.spond-calendar-day {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.spond-calendar-date {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #333;
    font-size: 1.3em;
}

.spond-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spond-calendar-event {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f7f7f7;
    border-left: 3px solid #0073aa;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.spond-calendar-event:hover {
    background: #efefef;
}

.spond-calendar-event-time {
    flex-shrink: 0;
    font-weight: bold;
    color: #0073aa;
    min-width: 50px;
}

.spond-calendar-event-title {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.spond-calendar-event-title:hover {
    color: #0073aa;
}

.spond-calendar-event-location {
    color: #666;
    font-size: 0.9em;
}

/* Single Event View */
.spond-single-event {
    margin: 20px 0;
}

.spond-single-event h2 {
    margin-bottom: 20px;
}

.spond-single-event img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.spond-single-event-meta {
    padding: 20px;
    background: #f7f7f7;
    border-left: 4px solid #0073aa;
    margin-bottom: 20px;
    border-radius: 4px;
}

.spond-single-event-meta p {
    margin: 10px 0;
}

.spond-single-event-content {
    line-height: 1.8;
}

.spond-single-event-cta {
    margin-top: 30px;
    padding: 25px;
    background: #f7f9fc;
    border: 2px solid #0073aa;
    border-radius: 8px;
    text-align: center;
}

.spond-cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #0073aa;
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,115,170,0.2);
}

.spond-cta-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,115,170,0.4);
}

.spond-cta-note {
    margin-top: 15px;
    color: #666;
    font-size: 0.9em;
}

/* No Events Message */
.spond-no-events {
    padding: 30px;
    text-align: center;
    background: #f7f7f7;
    border-radius: 8px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .spond-event-item {
        flex-direction: column;
    }
    
    .spond-event-thumbnail {
        width: 100%;
    }
    
    .spond-events-grid {
        grid-template-columns: 1fr;
    }
    
    .spond-event-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .spond-calendar-event {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Admin Styles */
.spond-participants-summary p {
    margin: 5px 0;
}

.spond-participants-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.spond-participants-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.spond-sync-info {
    padding: 15px;
    background: #f7f7f7;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Participants List Styles */
.spond-event-participants-list {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
}

.spond-event-participants-list strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.spond-participants {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.spond-participant {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spond-participant-accepted {
    background: #e8f5e9;
    color: #2e7d32;
}

.spond-participant-declined {
    background: #ffebee;
    color: #c62828;
}

/* Single Event Participants */
.spond-single-event-participants {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.spond-single-event-participants h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.spond-single-event-participants h4 {
    margin: 15px 0 10px 0;
    color: #555;
    font-size: 1em;
}

.spond-participants-accepted,
.spond-participants-declined {
    margin-bottom: 20px;
}

.spond-participants-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spond-participants-list .spond-participant {
    margin-bottom: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
}

.spond-participant-status {
    font-weight: bold;
    font-size: 1.1em;
}

.spond-participant-name {
    flex: 1;
}

.spond-privacy-note {
    margin-top: 15px;
    padding: 10px;
    background: #fff9e6;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
}

/* Meeting Point Styles */
.spond-event-meeting-point {
    padding: 10px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    margin: 10px 0;
}

.spond-event-meeting-point strong {
    margin-right: 5px;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .spond-participants {
        grid-template-columns: 1fr;
    }
}

/* Next Event Widget Styles */
.spond-next-event-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.spond-next-event-widget.spond-no-event {
    padding: 40px 20px;
    text-align: center;
    background: #f7f7f7;
}

.spond-next-event-widget.spond-no-event p {
    color: #666;
    margin: 0;
    font-size: 1.1em;
}

.spond-next-event-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,115,170,0.3);
}

.spond-next-event-image {
    position: relative;
    overflow: hidden;
    max-height: 300px;
}

.spond-next-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spond-next-event-content {
    padding: 30px;
}

.spond-next-event-title {
    margin: 0 0 20px 0;
    font-size: 1.8em;
    color: #333;
    line-height: 1.3;
}

.spond-next-event-meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.spond-next-event-date-time,
.spond-next-event-location,
.spond-next-event-meeting {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spond-next-event-date-time {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.spond-next-event-date,
.spond-next-event-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spond-next-event-date {
    font-size: 1.1em;
    color: #333;
}

.spond-next-event-time {
    font-size: 1em;
    color: #555;
}

.spond-next-event-location {
    color: #333;
    font-size: 1em;
}

.spond-next-event-meeting {
    color: #666;
    font-size: 0.95em;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.spond-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.spond-next-event-description {
    margin: 20px 0;
    color: #555;
    line-height: 1.7;
    font-size: 1em;
}

.spond-next-event-participants {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #0073aa;
}

.spond-next-event-participants-title {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spond-participant-badge {
    background: #0073aa;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 600;
}

.spond-next-event-participants-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.spond-next-event-participant {
    background: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.spond-next-event-participant:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.spond-next-event-participant.spond-more-participants {
    background: #e3f2fd;
    font-weight: 500;
    color: #0073aa;
}

.spond-participant-check {
    color: #4caf50;
    font-weight: bold;
    font-size: 1.1em;
}

.spond-more-participants .spond-participant-check {
    color: #0073aa;
}

.spond-participant-name {
    flex: 1;
    color: #333;
}

.spond-participant-count {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spond-next-event-privacy-note {
    margin: 15px 0 0 0;
    color: #666;
    font-style: italic;
}

.spond-next-event-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.spond-next-event-btn {
    flex: 1;
    min-width: 200px;
    padding: 14px 30px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    display: inline-block;
}

.spond-btn-details {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #e0e0e0;
}

.spond-btn-details:hover {
    background: #e0e0e0;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.spond-btn-cta {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border: 2px solid transparent;
}

.spond-btn-cta:hover {
    background: linear-gradient(135deg, #005a87 0%, #004666 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,115,170,0.4);
}

/* Responsive für Next Event Widget */
@media (max-width: 768px) {
    .spond-next-event-badge {
        top: 10px;
        right: 10px;
        font-size: 0.75em;
        padding: 6px 14px;
    }
    
    .spond-next-event-content {
        padding: 20px;
    }
    
    .spond-next-event-title {
        font-size: 1.4em;
    }
    
    .spond-next-event-participants-list {
        grid-template-columns: 1fr;
    }
    
    .spond-next-event-actions {
        flex-direction: column;
    }
    
    .spond-next-event-btn {
        width: 100%;
        min-width: auto;
    }
}
