/* ==============================
   Star Stuff Webinar — Styles
   ============================== */

:root {
    --ssw-primary: #e94560;
    --ssw-dark: #1a1a2e;
    --ssw-darker: #0f3460;
    --ssw-light: #f4f4f8;
    --ssw-white: #ffffff;
    --ssw-text: #333333;
    --ssw-radius: 12px;
    --ssw-accent: #f9b734;
    --ssw-accent-rgb: 249, 183, 52;
    --ssw-accent-hover: #fbc55f;
    --ssw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Wrapper */
.ssw-webinar-wrapper {
    font-family: var(--ssw-font);
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(145deg, var(--ssw-dark) 0%, var(--ssw-darker) 100%);
    border-radius: var(--ssw-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: var(--ssw-white);
    position: relative;
    overflow: hidden;
}

.ssw-webinar-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.08) 0%, transparent 50%);
    pointer-events: none;
}
/* Main Title */
.ssw-webinar-main-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--ssw-white);
    line-height: 1.2;
}

/* List Layout */
.ssw-is-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ---- Countdown ---- */
.ssw-countdown {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.ssw-countdown-title {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.2rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ssw-countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.ssw-time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.ssw-time-value {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(180deg, var(--ssw-white) 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ssw-time-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1.5px;
    margin-top: 6px;
}

.ssw-time-separator {
    font-size: 2rem;
    font-weight: 300;
    color: var(--ssw-primary);
    padding-bottom: 1.2rem;
    animation: ssw-pulse 1s infinite;
}

@keyframes ssw-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Countdown finished state */
.ssw-countdown.ssw-finished .ssw-countdown-title {
    color: var(--ssw-primary);
    font-weight: 600;
}

.ssw-timezone-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
    font-style: italic;
}

.ssw-passed {
    opacity: 0.7;
    filter: grayscale(0.5);
}

/* ---- Registration Form ---- */
.ssw-register-form {
    position: relative;
    z-index: 1;
}

.ssw-form-message {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.2rem 0;
    line-height: 1.5;
}

.ssw-webinar-main-title {
    font-size: 2.2rem;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    color: #fff;
    font-weight: 700;
}

.ssw-webinar-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

.ssw-video-row {
    margin-bottom: 2.5rem;
}

.ssw-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ssw-video-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ssw-accent);
    transform: translateX(5px);
}

.ssw-play-icon {
    color: var(--ssw-accent);
    font-size: 0.8rem;
}

/* --- Status Badges --- */
/* User requested removal of "Próxima" badges, keeping them for other layouts if needed but removing banner specific ones */
.ssw-layout-banner .ssw-status-badge {
    display: none !important;
}

.ssw-webinar-wrapper.ssw-passed {
    opacity: 0.95;
}

.ssw-passed-content {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ssw-btn-featured {
    background: var(--ssw-accent) !important;
    padding: 12px 25px !important;
    height: auto !important;
    font-size: 1rem !important;
    letter-spacing: 1px;
}

.ssw-badge-upcoming {
    background: var(--ssw-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--ssw-accent-rgb), 0.4);
}

.ssw-badge-finished {
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Passed/Finished UI --- */
.ssw-passed-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ssw-replay-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.ssw-btn-featured {
    background: var(--ssw-accent) !important;
    padding: 15px 30px !important;
    height: auto !important;
    font-size: 1.1rem !important;
    box-shadow: 0 10px 20px rgba(var(--ssw-accent-rgb), 0.2) !important;
}

.ssw-btn-featured:hover {
    background: var(--ssw-accent-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(var(--ssw-accent-rgb), 0.3) !important;
}

.ssw-form-row {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px;
    transition: all 0.3s ease;
}

.ssw-form-row:focus-within {
    border-color: var(--ssw-accent);
    background: rgba(255, 255, 255, 0.08);
}

.ssw-register-form form.ssw-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

.ssw-email-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 0 20px !important;
    height: 48px !important;
    font-size: 1rem !important;
    outline: none !important;
    box-shadow: none !important;
}

.ssw-email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Isolate button from theme/Elementor overrides with extreme specificity */
html body .ssw-webinar-wrapper .ssw-submit-btn,
html body .ssw-webinar-wrapper button.ssw-submit-btn,
html body .ssw-webinar-wrapper .ssw-register-form button.ssw-submit-btn {
    background-color: var(--ssw-accent) !important;
    background-image: none !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    border: none !important;
    padding: 0 30px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    height: 48px !important;
    text-transform: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

html body .ssw-webinar-wrapper .ssw-submit-btn:hover {
    background-color: var(--ssw-accent-hover) !important;
    transform: translateY(-1px) !important;
}

html body .ssw-webinar-wrapper .ssw-submit-btn:active {
    transform: scale(0.98) !important;
}

/* Feedback messages */
.ssw-form-feedback {
    margin-top: 1rem;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    animation: ssw-fadeIn 0.3s ease;
}

.ssw-form-feedback.ssw-success {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.ssw-is-subscribed .ssw-form-feedback.ssw-success {
    background: rgba(46, 213, 115, 0.08);
    border: 1px dashed rgba(46, 213, 115, 0.4);
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0;
}

.ssw-form-feedback.ssw-error {
    background: rgba(233, 69, 96, 0.15);
    color: #ff6b81;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

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

/* Loading spinner */
.ssw-submit-btn.ssw-loading {
    position: relative;
    color: transparent;
}

.ssw-submit-btn.ssw-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid transparent;
    border-top-color: var(--ssw-white);
    border-radius: 50%;
    animation: ssw-spin 0.6s linear infinite;
}

@keyframes ssw-spin {
    to { transform: rotate(360deg); }
}

/* ---- Layout: Banner (Split View) ---- */
.ssw-layout-banner .ssw-webinar-wrapper {
    max-width: 1050px; /* More compact */
    padding: 2.5rem 3rem;
    text-align: left;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: visible;
    margin: 2.5rem auto;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.ssw-banner-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.ssw-banner-header {
    grid-column: 1 / -1; 
    margin-bottom: 2.5rem;
    text-align: center;
}

.ssw-banner-header .ssw-webinar-main-title {
    font-size: 2.1rem;
    margin: 0;
    line-height: 1.1;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Left Content Stack */
.ssw-banner-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ssw-image-container {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    max-height: 320px; /* More compact height */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ssw-banner-img {
    width: 100% !important;
    height: auto !important;
    max-height: 320px !important;
    object-fit: contain !important;
    display: block !important;
}

.ssw-webinar-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 1.5rem 0;
}

.ssw-video-action-row {
    margin-top: 1rem;
}

.ssw-video-btn-link {
    color: var(--ssw-accent) !important;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.2s ease;
}

.ssw-video-btn-link:hover {
    color: var(--ssw-accent-hover) !important;
    transform: translateX(5px);
}

/* Right Action Box */
.ssw-action-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.ssw-countdown-title-mini {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.ssw-layout-banner .ssw-countdown-timer {
    justify-content: center;
    gap: 1rem;
}

.ssw-layout-banner .ssw-time-block {
    min-width: 60px;
}

.ssw-layout-banner .ssw-time-value {
    font-size: 2.2rem;
}

.ssw-form-invitation {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 1.5rem;
}

.ssw-layout-banner .ssw-form-row {
    max-width: 100%;
}

.ssw-passed-message-box {
    text-align: center;
}

.ssw-status-label {
    color: var(--ssw-accent);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

@media (max-width: 1000px) {
    .ssw-banner-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .ssw-layout-banner .ssw-webinar-wrapper {
        padding: 2.5rem;
    }
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .ssw-webinar-wrapper {
        padding: 2rem 1rem;
        margin: 0;
        border-radius: 0;
    }

    .ssw-banner-header .ssw-webinar-main-title {
        font-size: 1.8rem;
    }

    .ssw-action-box {
        padding: 2rem 1.5rem;
    }

    .ssw-time-value {
        font-size: 1.8rem;
    }

    .ssw-form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .ssw-submit-btn {
        width: 100% !important;
        border-radius: 12px !important;
    }
}
