/* PCO Calendar Embed Styles */

.pco-calendar-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Loading State */
.pco-calendar-container.pco-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pco-loading-message {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

/* Error State */
.pco-calendar-container.pco-error {
    border: 2px solid #ff6b6b;
    background-color: #fff5f5;
}

.pco-error-message {
    padding: 20px;
    text-align: center;
    color: #d63031;
    font-size: 14px;
    font-weight: 500;
}

/* Calendar Content */
.pco-calendar-content {
    background: #ffffff;
    min-height: 200px;
}

/* Header */
.pco-calendar-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pco-organization-name {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Live Clock */
.pco-live-clock {
    text-align: right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pco-current-time {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.pco-current-date {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

/* Large display clock for lobby kiosks */
@media (min-width: 1024px) {
    .pco-current-time {
        font-size: 32px;
    }
    
    .pco-current-date {
        font-size: 16px;
    }
}

/* Events List */
.pco-events-list {
    padding: 20px 0;
}

.pco-event-item {
    padding: 20px 25px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
    position: relative;
}

.pco-event-item:last-child {
    border-bottom: none;
}

.pco-event-item:hover {
    background-color: #f8f9fa;
}

.pco-event-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Column Layout for Events */
.pco-event-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 30px;
    align-items: center;
    width: 100%;
}

.pco-event-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pco-event-name-column {
    justify-self: start;
}

.pco-event-time-column {
    justify-self: center;
    text-align: center;
}

.pco-event-location-column {
    justify-self: end;
}

.pco-event-name {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
}

.pco-event-time-range {
    font-weight: 700;
    color: #2d3748;
    font-size: 18px;
    white-space: nowrap;
}

.pco-event-date {
    background: #e2e8f0;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 12px;
    text-align: center;
}

.pco-event-location {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    text-align: center;
    min-width: 120px;
}

/* Larger display for lobby kiosks */
@media (min-width: 1024px) {
    .pco-event-row {
        gap: 40px;
    }
    
    .pco-event-name {
        font-size: 26px;
    }
    
    .pco-event-time-range {
        font-size: 20px;
    }
    
    .pco-event-location {
        font-size: 18px;
        padding: 12px 24px;
        min-width: 150px;
    }
}

/* No Events */
.pco-no-events {
    padding: 60px 25px;
    text-align: center;
    color: #a0aec0;
    font-size: 16px;
    font-style: italic;
}

/* Footer */
.pco-calendar-footer {
    padding: 0;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

/* Ticker */
.pco-ticker-container {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 12px 25px;
    min-height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.pco-ticker-content {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    animation: ticker-fade-in 0.5s ease-in;
}

@keyframes ticker-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Large display ticker for lobby kiosks */
@media (min-width: 1024px) {
    .pco-ticker-container {
        padding: 15px 25px;
        min-height: 50px;
    }
    
    .pco-ticker-content {
        font-size: 18px;
    }
}

.pco-last-updated {
    padding: 8px 25px;
    font-size: 12px;
    color: #a0aec0;
    font-style: italic;
    text-align: right;
    background: #f7fafc;
}

/* Dark Theme */
.pco-calendar-container.pco-theme-dark {
    background: #2d3748;
    color: #e2e8f0;
}

.pco-theme-dark .pco-calendar-content {
    background: #2d3748;
}

.pco-theme-dark .pco-calendar-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-bottom-color: #4a5568;
}

.pco-theme-dark .pco-event-item {
    border-bottom-color: #4a5568;
}

.pco-theme-dark .pco-event-item:hover {
    background-color: #374151;
}

.pco-theme-dark .pco-event-name {
    color: #f7fafc;
}

.pco-theme-dark .pco-event-date {
    background: #4a5568;
    color: #e2e8f0;
}

.pco-theme-dark .pco-event-time-range {
    color: #e2e8f0;
}

.pco-theme-dark .pco-event-location {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: #f7fafc;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pco-theme-dark .pco-calendar-footer {
    background: #374151;
    border-top-color: #4a5568;
}

.pco-theme-dark .pco-last-updated {
    background: #374151;
    color: #a0aec0;
}

.pco-theme-dark .pco-ticker-container {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.pco-theme-dark .pco-no-events {
    color: #718096;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pco-calendar-container {
        margin: 10px 0;
        border-radius: 4px;
    }
    
    .pco-calendar-header,
    .pco-event-item,
    .pco-calendar-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .pco-calendar-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .pco-organization-name {
        font-size: 20px;
    }
    
    .pco-live-clock {
        text-align: center;
    }
    
    .pco-current-time {
        font-size: 24px;
    }
    
    .pco-current-date {
        font-size: 13px;
    }
    
    .pco-event-row {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: left;
    }
    
    .pco-event-name-column,
    .pco-event-time-column,
    .pco-event-location-column {
        justify-self: start;
    }
    
    .pco-event-time-column {
        text-align: left;
    }
    
    .pco-event-name {
        font-size: 18px;
    }
    
    .pco-event-location {
        font-size: 14px;
        padding: 8px 16px;
        min-width: auto;
        display: inline-block;
    }
    
    .pco-event-time-range {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pco-calendar-header,
    .pco-event-item,
    .pco-calendar-footer {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .pco-organization-name {
        font-size: 18px;
    }
    
    .pco-event-name {
        font-size: 16px;
    }
}

/* Animation for new content */
.pco-calendar-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar for long event lists */
.pco-events-list::-webkit-scrollbar {
    width: 6px;
}

.pco-events-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.pco-events-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.pco-events-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}