/**
 * TangoHUB Organizer Widget Styles
 *
 * Styled using BuddyBoss design system (ADR-008)
 *
 * @package TangoHUB_Event_Manager
 * @since Phase 6 - BuddyBoss Widget Integration
 */

/* ============================================================================
   Widget Container
   ========================================================================= */

.tgh-organizer-widget {
    background: var(--bb-background-alt, #ffffff);
    border: 1px solid var(--bb-border-color, #e8e8e8);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.tgh-organizer-widget:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   Widget Header
   ========================================================================= */

.tgh-widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bb-accent-color, #007bff);
}

.tgh-widget-icon {
    font-size: 32px;
    line-height: 1;
}

.tgh-widget-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--bb-text-color, #333333);
    margin: 0;
    line-height: 1.3;
}

/* ============================================================================
   Widget Body
   ========================================================================= */

.tgh-widget-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tgh-widget-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--bb-text-light, #666666);
    margin: 0;
}

/* ============================================================================
   Feature List (Upgrade Widget)
   ========================================================================= */

.tgh-widget-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tgh-widget-features li {
    font-size: 14px;
    color: var(--bb-text-color, #333333);
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================================
   Widget Buttons
   ========================================================================= */

.tgh-widget-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
}

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

.tgh-button-primary:hover {
    background: var(--bb-accent-hover, #0056b3);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.tgh-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Upgrade Button - "Upgrade to Organizer Plus" */
.tgh-button-upgrade {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.tgh-button-upgrade::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transition: left 0.3s ease;
}

.tgh-button-upgrade:hover::before {
    left: 0;
}

.tgh-button-upgrade:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tgh-button-upgrade span {
    position: relative;
    z-index: 1;
}

/* ============================================================================
   Widget Variants
   ========================================================================= */

/* "Become an Organizer" Widget */
.tgh-widget-become .tgh-widget-header {
    border-bottom-color: var(--bb-accent-color, #007bff);
}

/* "Upgrade" Widget */
.tgh-widget-upgrade .tgh-widget-header {
    border-bottom-color: #667eea;
}

.tgh-widget-upgrade .tgh-widget-icon {
    /* Gradient text for upgrade icon */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

    .tgh-widget-header {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .tgh-widget-icon {
        font-size: 28px;
    }

    .tgh-widget-title {
        font-size: 16px;
    }

    .tgh-widget-description {
        font-size: 13px;
    }

    .tgh-widget-features li {
        font-size: 13px;
    }

    .tgh-widget-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ============================================================================
   Dark Mode Support (if BuddyBoss has dark mode)
   ========================================================================= */

@media (prefers-color-scheme: dark) {
    .tgh-organizer-widget {
        background: var(--bb-background-alt-dark, #1a1a1a);
        border-color: var(--bb-border-color-dark, #333333);
    }

    .tgh-widget-title {
        color: var(--bb-text-color-dark, #ffffff);
    }

    .tgh-widget-description {
        color: var(--bb-text-light-dark, #cccccc);
    }

    .tgh-widget-features li {
        color: var(--bb-text-color-dark, #ffffff);
    }
}

/* ============================================================================
   Animation
   ========================================================================= */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tgh-organizer-widget {
    animation: slideIn 0.3s ease-out;
}

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

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