/* Class Widget Embed-Optimized Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    color: #333;
    line-height: 1.6;
    min-height: auto;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: auto;
    display: block;
}

/* Header Styles - Compact for embed */
.header {
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 1rem;
    border-radius: 12px;
}

.title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Main Content - Compact */
.main-content {
    background: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 2rem 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0264c0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 2rem 0;
    color: #dc3545;
}

.error-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.retry-btn {
    background: #0264c0;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background: #034a8c;
}

/* Class Information */
.class-info {
    text-align: center;
}

.class-details {
    margin-bottom: 2rem;
}

.class-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.class-type {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Class Date/Time */
.class-datetime {
    text-align: center;
    margin: 1.5rem 0 2rem;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.datetime-value {
    font-weight: 600;
    color: #0264c0;
}

.timezone-note {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
}

/* Countdown Timer - Compact */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem 0.8rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.countdown-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0264c0;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Zoom Link Info */
.zoom-link-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    margin: 1.5rem 0;
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    text-align: center;
}

.zoom-link-info a {
    word-break: break-all;
    font-size: 0.8rem;
}

/* User Messaging */
.user-messaging {
    margin: 1.5rem 0;
    text-align: center;
}

.access-message {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 1px solid #28a745;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #155724;
    font-size: 0.95rem;
}

.promotional-message {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #f39c12;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: #856404;
    font-size: 0.9rem;
}

/* Join Button */
.join-button-container {
    margin: 2rem 0 1.5rem;
}

/* Signup Button */
.signup-button-container {
    margin: 2rem 0 1.5rem;
}

.signup-button {
    display: inline-block;
    background: #28a745;
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.signup-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.signup-button:active {
    transform: translateY(0);
}

.signup-note {
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.join-button {
    display: inline-block;
    background: #0264c0;
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(2, 100, 192, 0.3);
    position: relative;
    overflow: hidden;
}

.join-button:hover {
    background: #034a8c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 100, 192, 0.4);
}

.join-button:active {
    transform: translateY(0);
}

.join-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.join-button:hover::before {
    left: 100%;
}

.join-note {
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Schedule Info */
.schedule-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.schedule-item {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
}

.schedule-label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.schedule-value {
    display: block;
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

/* No Classes Message */
.no-classes {
    text-align: center;
    padding: 2rem 0;
    color: #6c757d;
}

.no-classes-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Footer - Compact */
.footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer p {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .countdown {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .countdown-item {
        padding: 1.2rem 0.6rem;
    }
    
    .countdown-number {
        font-size: 1.6rem;
    }
    
    .schedule-info {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .countdown {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.3rem;
    }
    
    .countdown-item {
        padding: 0.8rem 0.3rem;
    }
    
    .countdown-number {
        font-size: 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .join-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animation for countdown updates */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.countdown-number.updating {
    animation: pulse 0.3s ease-in-out;
}