/* ===================================
   Atlas Webinar — Public Styles
   =================================== */

/* ---------- RESET ---------- */
.atlas-single-webinar *, .atlas-webinar-grid *, .atlas-archive-wrapper * {
    box-sizing: border-box;
}

/* ---------- HERO ---------- */
.atlas-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: cover;
    background-position: center;
    min-height: 340px;
    position: relative;
}
.atlas-hero-overlay {
    background: rgba(26, 26, 46, 0.85);
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.atlas-hero-content {
    max-width: 800px;
    text-align: center;
    color: white;
}
.atlas-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 15px 0;
    line-height: 1.3;
    color: white;
}
.atlas-hero-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.9;
}
.atlas-event-badge, .atlas-status-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.atlas-event-badge {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
.atlas-status-upcoming { background: #28a745; color: white; }
.atlas-status-live { background: #dc3545; color: white; animation: atlas-pulse 2s infinite; }
.atlas-status-completed { background: #6c757d; color: white; }
.atlas-status-cancelled { background: #343a40; color: white; }
.atlas-status-draft { background: #ffc107; color: #333; }

@keyframes atlas-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ---------- CONTENT LAYOUT ---------- */
.atlas-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.atlas-section {
    margin-bottom: 35px;
}
.atlas-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.atlas-description { line-height: 1.75; color: #444; }
.atlas-description p { margin-bottom: 12px; }

/* ---------- COUNTDOWN ---------- */
.atlas-countdown-section {
    text-align: center;
    margin-bottom: 35px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}
.atlas-countdown-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 15px;
}
.atlas-countdown {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.atlas-cd-item {
    background: #1a1a2e;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    min-width: 70px;
    text-align: center;
}
.atlas-cd-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}
.atlas-cd-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 5px;
}

/* ---------- WHAT'S COVERED ---------- */
.atlas-covered-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.atlas-covered-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    line-height: 1.5;
}
.atlas-covered-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---------- SPEAKERS ---------- */
.atlas-speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.atlas-speaker-card {
    text-align: center;
    padding: 25px 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.2s;
}
.atlas-speaker-card:hover { transform: translateY(-3px); }
.atlas-speaker-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}
.atlas-speaker-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 12px;
}
.atlas-speaker-card h4 { margin: 0 0 4px; font-size: 1rem; color: #1a1a2e; }
.atlas-speaker-title { color: #666; font-size: 0.85rem; margin: 0 0 8px; }
.atlas-speaker-bio { color: #777; font-size: 0.82rem; line-height: 1.5; margin: 0; }

/* ---------- ORGANIZERS ---------- */
.atlas-organizers-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.atlas-organizer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #f8f9fa;
    border-radius: 10px;
}
.atlas-organizer-photo { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.atlas-organizer-card h4 { margin: 0; font-size: 0.9rem; color: #1a1a2e; }
.atlas-organizer-role { margin: 0; font-size: 0.8rem; color: #666; }

/* ---------- REGISTRATION BOX ---------- */
.atlas-registration-box, .atlas-confirmation-box {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 25px;
    position: sticky;
    top: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.atlas-reg-header h3 { margin: 0 0 12px; font-size: 1.2rem; color: #1a1a2e; }
.atlas-spots {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 8px;
}
.atlas-spots-low { color: #dc3545; }
.atlas-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}
.atlas-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 3px;
    transition: width 0.5s;
}
.atlas-reg-count { font-size: 0.78rem; color: #888; margin-bottom: 15px; }

/* Price */
.atlas-reg-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.atlas-price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
}
.atlas-price-free { color: #28a745; }
.atlas-price-divider { color: #999; font-size: 0.85rem; }

/* Form */
.atlas-form-group { margin-bottom: 15px; }
.atlas-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}
.atlas-form-group input[type="text"],
.atlas-form-group input[type="email"],
.atlas-form-group input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    font-family: inherit;
}
.atlas-form-group input:focus {
    outline: none;
    border-color: #1a1a2e;
}
.atlas-ticket-options {
    display: flex;
    gap: 10px;
}
.atlas-ticket-option {
    flex: 1;
    padding: 10px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}
.atlas-ticket-option:has(input:checked) {
    border-color: #1a1a2e;
    background: #f0f0ff;
}
.atlas-ticket-option input { margin: 0; }

.atlas-submit-btn {
    width: 100%;
    padding: 13px;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.atlas-submit-btn:hover { background: #16213e; transform: translateY(-1px); }
.atlas-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.atlas-form-message {
    margin-top: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
}
.atlas-form-message.atlas-msg-error { background: #f8d7da; color: #721c24; }
.atlas-form-message.atlas-msg-success { background: #d4edda; color: #155724; }

.atlas-reg-closed {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* ---------- CONFIRMATION ---------- */
.atlas-confirm-icon { font-size: 3rem; text-align: center; margin-bottom: 10px; }
.atlas-confirmation-box h3 { text-align: center; margin: 0 0 8px; color: #1a1a2e; }
.atlas-confirmation-box #atlas-confirm-message { text-align: center; color: #666; font-size: 0.9rem; margin-bottom: 15px; }
.atlas-confirm-details { background: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 15px; }
.atlas-confirm-details p { margin: 6px 0; font-size: 0.85rem; color: #444; }
.atlas-confirm-details code { background: #e9ecef; padding: 2px 8px; border-radius: 4px; }
.atlas-confirm-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; }
.atlas-btn {
    display: block;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.atlas-btn-primary { background: #1a1a2e; color: white; }
.atlas-btn-primary:hover { background: #16213e; color: white; }
.atlas-btn-whatsapp { background: #25D366; color: white; }
.atlas-btn-whatsapp:hover { background: #1da851; color: white; }
.atlas-confirm-note { text-align: center; font-size: 0.8rem; color: #999; }

/* ---------- CARD GRID ---------- */
.atlas-archive-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}
.atlas-archive-header {
    text-align: center;
    margin-bottom: 40px;
}
.atlas-archive-header h1 { font-size: 2rem; color: #1a1a2e; margin-bottom: 8px; }
.atlas-archive-header p { color: #666; font-size: 1.05rem; }

.atlas-webinar-grid {
    display: grid;
    gap: 25px;
}
.atlas-cols-1 { grid-template-columns: 1fr; }
.atlas-cols-2 { grid-template-columns: repeat(2, 1fr); }
.atlas-cols-3 { grid-template-columns: repeat(3, 1fr); }

.atlas-webinar-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}
.atlas-webinar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.atlas-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
}
.atlas-card-no-image {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
}
.atlas-card-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.atlas-card-type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(4px);
}
.atlas-card-content { padding: 18px; }
.atlas-card-title { margin: 0 0 8px; font-size: 1.1rem; }
.atlas-card-title a { color: #1a1a2e; text-decoration: none; }
.atlas-card-title a:hover { color: #0f3460; }
.atlas-card-meta { margin-bottom: 10px; }
.atlas-card-date { font-size: 0.82rem; color: #888; }
.atlas-card-excerpt { color: #666; font-size: 0.88rem; line-height: 1.5; margin: 0 0 15px; }
.atlas-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.atlas-card-price { font-weight: 700; color: #1a1a2e; font-size: 0.95rem; }
.atlas-card-urgency { font-size: 0.78rem; color: #dc3545; font-weight: 600; }
.atlas-card-btn {
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
}
.atlas-card-btn:hover { text-decoration: underline; }

.atlas-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .atlas-content-wrapper {
        grid-template-columns: 1fr;
    }
    .atlas-registration-box, .atlas-confirmation-box {
        position: static;
    }
    .atlas-hero-title { font-size: 1.5rem; }
    .atlas-hero-meta { flex-direction: column; gap: 8px; }
    .atlas-countdown { gap: 8px; }
    .atlas-cd-item { padding: 10px 14px; min-width: 55px; }
    .atlas-cd-num { font-size: 1.3rem; }
    .atlas-webinar-grid.atlas-cols-2,
    .atlas-webinar-grid.atlas-cols-3 {
        grid-template-columns: 1fr;
    }
    .atlas-speakers-grid { grid-template-columns: 1fr; }
}
