/**
 * TangoHUB Organizer Widget Styles
 *
 * Styled using BuddyBoss design system (ADR-008)
 * Matches the card-style design with centered title, feature checklist,
 * and full-width rounded CTA button.
 *
 * Typography: No font-family declarations — inherits from BuddyBoss theme
 * via CSS cascade so fonts always match the active theme configuration.
 *
 * @package TangoHUB_Event_Manager
 * @since Phase 6 - BuddyBoss Widget Integration
 */

/* ============================================================================
   Widget Container — Clean card with rounded corners
   ========================================================================= */

.tgh-organizer-widget {
    background: var(--tgh-color-background, var(--bb-content-background-color, #ffffff));
    border: 1px solid var(--tgh-color-border, var(--bb-content-border-color, #E7E9EC));
    border-radius: var(--tgh-border-radius-xl, 12px);
    padding: var(--tgh-spacing-lg, 24px);
    margin-bottom: var(--tgh-spacing-lg, 24px);
    text-align: center;
}

/* ============================================================================
   Widget Title — Centered, primary color
   ========================================================================= */

.tgh-widget-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--tgh-color-text, var(--bb-headings-color, #122B46));
    margin: 0 0 var(--tgh-spacing-md, 16px) 0;
    line-height: 1.3;
    text-align: center;
}

/* ============================================================================
   Divider — Thin line below title (matches sample design)
   ========================================================================= */

.tgh-widget-divider {
    height: 2px;
    background: var(--tgh-color-primary, var(--bb-primary-color, #007CBA));
    margin: 0 auto var(--tgh-spacing-md, 16px) auto;
    width: 40px;
    border-radius: 1px;
}

/* ============================================================================
   Widget Description
   ========================================================================= */

.tgh-widget-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--tgh-color-text-light, var(--bb-body-text-color, #4D5C6D));
    margin: 0 0 var(--tgh-spacing-md, 16px) 0;
    text-align: left;
}

/* ============================================================================
   Feature List — Checkmark icons in primary color
   ========================================================================= */

.tgh-widget-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--tgh-spacing-lg, 24px) 0;
    display: flex;
    flex-direction: column;
    gap: var(--tgh-spacing-sm, 8px);
    text-align: left;
}

.tgh-widget-features li {
    font-size: 14px;
    color: var(--tgh-color-text, var(--bb-headings-color, #122B46));
    display: flex;
    align-items: flex-start;
    gap: var(--tgh-spacing-sm, 8px);
    line-height: 1.5;
}

/* Checkmark icon — filled circle with checkmark using primary color */
.tgh-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: var(--tgh-color-primary, var(--bb-primary-color, #007CBA));
    margin-top: 1px;
    position: relative;
}

.tgh-check-icon::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -1px;
}

/* ============================================================================
   Widget Buttons — Full-width, rounded, uses BuddyBoss primary color
   ========================================================================= */

.tgh-widget-button {
    display: block;
    width: 100%;
    padding: 14px var(--tgh-spacing-lg, 24px);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--tgh-border-radius-pill, 999px);
    transition: all var(--tgh-transition-fast, 150ms ease-in-out);
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.tgh-widget-button:focus {
    outline: 2px solid var(--tgh-color-primary, var(--bb-primary-color, #007CBA));
    outline-offset: 2px;
}

/* Primary Button — "Become an Organizer" */
.tgh-button-primary {
    background: var(--tgh-color-primary, var(--bb-primary-color, #007CBA));
    color: #ffffff;
}

.tgh-button-primary:hover {
    background: var(--tgh-color-primary-hover, var(--bb-primary-button-background-hover, #23DFE8));
    color: #ffffff;
    text-decoration: none;
}

/* Upgrade Button — "Upgrade to Organizer Plus" */
.tgh-button-upgrade {
    background: var(--tgh-color-primary, var(--bb-primary-color, #007CBA));
    color: #ffffff;
}

.tgh-button-upgrade:hover {
    background: var(--tgh-color-primary-hover, var(--bb-primary-button-background-hover, #23DFE8));
    color: #ffffff;
    text-decoration: none;
}

/* ============================================================================
   Widget Variants — Subtle visual distinction between become and upgrade
   ========================================================================= */

/* "Upgrade" Widget — slightly different divider to distinguish */
.tgh-widget-upgrade .tgh-widget-divider {
    background: var(--tgh-color-primary, var(--bb-primary-color, #007CBA));
}

/* ============================================================================
   Responsive Design
   ========================================================================= */

@media screen and (max-width: 768px) {
    .tgh-organizer-widget {
        padding: var(--tgh-spacing-md, 16px);
        margin-bottom: var(--tgh-spacing-md, 16px);
    }

    .tgh-widget-title {
        font-size: var(--tgh-font-size-md, 1rem);
    }

    .tgh-widget-description {
        font-size: var(--tgh-font-size-xs, 0.75rem);
    }

    .tgh-widget-features li {
        font-size: var(--tgh-font-size-xs, 0.75rem);
    }

    .tgh-widget-button {
        padding: 12px var(--tgh-spacing-md, 16px);
        font-size: var(--tgh-font-size-xs, 0.75rem);
    }

    .tgh-check-icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .tgh-check-icon::after {
        width: 4px;
        height: 8px;
    }
}

/* ============================================================================
   Print Styles
   ========================================================================= */

@media print {
    .tgh-organizer-widget {
        display: none;
    }
}
