/* Prahar Community — Landing Page Customizer & Dynamic Widgets Styles */

.dynamic-widgets-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Base Widget Card */
.custom-widget-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg, 16px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.custom-widget-card:hover {
    transform: translateY(-2px);
}

/* Theme: Mint Neon */
.custom-widget-card.theme-mint {
    background: linear-gradient(135deg, rgba(0, 245, 155, 0.08) 0%, rgba(15, 19, 27, 0.85) 100%);
    border: 1px solid rgba(0, 245, 155, 0.28);
    box-shadow: 0 8px 32px rgba(0, 245, 155, 0.08), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.custom-widget-card.theme-mint:hover {
    border-color: rgba(0, 245, 155, 0.45);
    box-shadow: 0 12px 36px rgba(0, 245, 155, 0.15);
}
.theme-mint .widget-badge {
    background: rgba(0, 245, 155, 0.15);
    color: #00f59b;
    border: 1px solid rgba(0, 245, 155, 0.35);
}
.theme-mint .widget-btn {
    background: #00f59b;
    color: #003920;
    box-shadow: 0 0 20px rgba(0, 245, 155, 0.35);
}
.theme-mint .widget-btn:hover {
    background: #2affad;
    box-shadow: 0 0 28px rgba(0, 245, 155, 0.55);
}
.theme-mint .timer-box {
    background: rgba(0, 245, 155, 0.06);
    border: 1px solid rgba(0, 245, 155, 0.25);
    color: #00f59b;
}

/* Theme: Electric Cyan */
.custom-widget-card.theme-cyan {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.08) 0%, rgba(15, 19, 27, 0.85) 100%);
    border: 1px solid rgba(0, 210, 255, 0.28);
    box-shadow: 0 8px 32px rgba(0, 210, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.custom-widget-card.theme-cyan:hover {
    border-color: rgba(0, 210, 255, 0.45);
    box-shadow: 0 12px 36px rgba(0, 210, 255, 0.15);
}
.theme-cyan .widget-badge {
    background: rgba(0, 210, 255, 0.15);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.35);
}
.theme-cyan .widget-btn {
    background: #00d2ff;
    color: #003344;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.35);
}
.theme-cyan .widget-btn:hover {
    background: #38dcff;
    box-shadow: 0 0 28px rgba(0, 210, 255, 0.55);
}
.theme-cyan .timer-box {
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.25);
    color: #00d2ff;
}

/* Theme: Crimson Alert */
.custom-widget-card.theme-crimson {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.1) 0%, rgba(15, 19, 27, 0.88) 100%);
    border: 1px solid rgba(255, 82, 82, 0.3);
    box-shadow: 0 8px 32px rgba(255, 82, 82, 0.08), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.custom-widget-card.theme-crimson:hover {
    border-color: rgba(255, 82, 82, 0.5);
}
.theme-crimson .widget-badge {
    background: rgba(255, 82, 82, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 82, 82, 0.35);
}
.theme-crimson .widget-btn {
    background: #ff5252;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 82, 82, 0.35);
}
.theme-crimson .widget-btn:hover {
    background: #ff6b6b;
    box-shadow: 0 0 28px rgba(255, 82, 82, 0.55);
}
.theme-crimson .timer-box {
    background: rgba(255, 82, 82, 0.06);
    border: 1px solid rgba(255, 82, 82, 0.25);
    color: #ff6b6b;
}

/* Light Mode Overrides */
[data-theme="light"] .custom-widget-card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .custom-widget-card.theme-mint {
    background: linear-gradient(135deg, #f0fff6 0%, #ffffff 100%);
    border-color: rgba(0, 200, 120, 0.3);
}
[data-theme="light"] .custom-widget-card.theme-cyan {
    background: linear-gradient(135deg, #f0faff 0%, #ffffff 100%);
    border-color: rgba(0, 160, 220, 0.3);
}
[data-theme="light"] .custom-widget-card.theme-crimson {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-color: rgba(230, 60, 60, 0.3);
}
[data-theme="light"] .custom-widget-card .widget-title {
    color: #0f172a !important;
}
[data-theme="light"] .custom-widget-card .widget-desc {
    color: #475569 !important;
}

/* Widget Content Layout */
.widget-flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.widget-info {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.widget-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 9999px;
    width: fit-content;
    text-transform: uppercase;
}

.widget-title {
    font-family: var(--font-headline, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--on-surface, #dfe2ed);
    margin: 0;
}

.widget-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--on-surface-variant, #94a3b8);
    margin: 0;
    max-width: 600px;
}

/* Digital Countdown Cluster */
.widget-countdown-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 8px 10px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.timer-box .timer-digits {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.timer-box .timer-label {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.75;
    margin-top: 4px;
}

.timer-sep {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.5;
    margin-top: -8px;
}

/* Action Button */
.widget-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-headline, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    border: none;
}
.widget-btn:active {
    transform: scale(0.97);
}

/* Promo Code Box */
.promo-code-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.8rem;
    color: var(--on-surface, #dfe2ed);
}

[data-theme="light"] .promo-code-pill {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.promo-copy-btn {
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: underline;
    padding: 0;
    margin: 0;
    transition: opacity 0.2s ease;
}
.promo-copy-btn:hover {
    opacity: 1;
}

/* Floating Bottom Sticky Bar */
.floating-widgets-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    width: calc(100% - 32px);
    max-width: 960px;
    pointer-events: none;
}

.floating-widgets-dock > * {
    pointer-events: auto;
}

.floating-dock-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    border-radius: 14px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: slideUpDock 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.floating-close-btn {
    background: transparent;
    border: none;
    color: var(--on-surface-variant, #94a3b8);
    cursor: pointer;
    padding: 4px;
    font-size: 1.2rem;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.floating-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .widget-flex-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .widget-countdown-cluster {
        width: 100%;
        justify-content: space-between;
    }
    .timer-box {
        flex: 1;
        min-width: 0;
    }
    .widget-btn {
        width: 100%;
    }
    .floating-dock-card {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
    }
}
