/**
 * Pokój spotkań - Styles
 * 
 * @package Customer_Management_Plugin
 */

/* Główny kontener */
.cmp-pokoj-spotkan-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.cmp-pokoj-header {
    text-align: center;
    margin-bottom: 40px;
}

.cmp-pokoj-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1d2327;
}

.cmp-pokoj-description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Aktywne spotkanie */
#cmp-active-meeting-container {
    margin-bottom: 40px;
}

.cmp-active-meeting-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.cmp-active-meeting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.cmp-active-meeting-card h3 {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: white;
}

.cmp-active-meeting-card p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cmp-meeting-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.cmp-status-live {
    background: rgba(239, 68, 68, 0.9);
}

.cmp-live-indicator {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Sekcje */
.cmp-upcoming-events-section,
.cmp-past-events-section {
    margin-bottom: 50px;
}

.cmp-upcoming-events-section h3,
.cmp-past-events-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1d2327;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

/* Siatka wydarzeń */
.cmp-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Karta wydarzenia */
.cmp-event-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cmp-event-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.cmp-event-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-bottom: 1px solid #e5e7eb;
}

.cmp-event-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #1d2327;
}

.cmp-event-date {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.cmp-event-card-body {
    padding: 20px;
    flex: 1;
}

.cmp-event-description {
    color: #4b5563;
    margin-bottom: 15px;
    line-height: 1.6;
}

.cmp-event-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.cmp-event-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Countdown */
.cmp-countdown-container {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.cmp-countdown-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}

.cmp-countdown-timer {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.cmp-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cmp-countdown-value {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
}

.cmp-countdown-unit {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    text-transform: uppercase;
}

.cmp-countdown-expired {
    text-align: center;
    color: #ef4444;
    font-weight: 600;
    padding: 10px;
}

/* Stopka karty */
.cmp-event-card-footer {
    padding: 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* Przyciski */
.cmp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.cmp-btn-primary {
    background: #2563eb;
    color: white;
}

.cmp-btn-primary:hover {
    background: #1d4ed8;
}

.cmp-btn-secondary {
    background: #6b7280;
    color: white;
}

.cmp-btn-secondary:hover {
    background: #4b5563;
}

.cmp-btn-success {
    background: #10b981;
    color: white;
}

.cmp-btn-success:hover {
    background: #059669;
}

.cmp-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.cmp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cmp-btn:disabled:hover {
    background: #6b7280;
}

/* Brak wydarzeń */
.cmp-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.cmp-no-events .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    opacity: 0.3;
}

.cmp-no-events p {
    margin-top: 15px;
    font-size: 16px;
}

/* Brak nagrania */
.cmp-no-recording {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 14px;
    padding: 12px;
}

/* Zakończone wydarzenia */
.cmp-event-past {
    opacity: 0.9;
}

.cmp-event-past .cmp-event-card-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* Loading */
.cmp-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.cmp-loading .spinner {
    float: none;
    margin: 0 auto 15px;
}

/* Notice */
.cmp-notice {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.cmp-notice-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

/* Responsywność */
@media (max-width: 768px) {
    .cmp-events-grid {
        grid-template-columns: 1fr;
    }
    
    .cmp-countdown-value {
        font-size: 24px;
    }
    
    .cmp-pokoj-header h2 {
        font-size: 24px;
    }
    
    .cmp-active-meeting-card h3 {
        font-size: 22px;
    }
}