/* EventSub — tuiles, paliers, tags variables (DA ForgeStream) */

#estm-events-grid {
    align-items: stretch;
}

.estm-event-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
    height: 100%;
}

.estm-event-tile--half {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.9rem 1rem;
}

.estm-event-tile--half:hover {
    transform: translateY(-2px);
}

.estm-event-tile--half .estm-event-tile-header {
    margin-bottom: 0.2rem;
}

.estm-event-tile--half .estm-event-tile-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
}

.estm-event-tile--half .estm-event-tile-subtitle {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
}

.estm-event-tile--half [id^="estm-list-"] {
    flex: 1 1 auto;
    margin-bottom: 0.5rem !important;
    min-height: 2.25rem;
}

.estm-event-tile--half .estm-add-tier-btn {
    margin-top: auto;
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
}

.estm-event-tile--half .estm-tier-item {
    padding: 0.55rem 0.65rem;
}

.estm-event-tile--half .estm-tier-item .font-semibold {
    font-size: 0.8rem;
}

.estm-event-tile {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.estm-event-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.9;
}

.estm-event-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.estm-accent-green::before { background: linear-gradient(90deg, #16a34a, #4ade80); }
.estm-accent-green { border-color: rgba(34, 197, 94, 0.28); }
.estm-accent-green:hover { border-color: rgba(74, 222, 128, 0.5); }

.estm-accent-pink::before { background: linear-gradient(90deg, #db2777, #f472b6); }
.estm-accent-pink { border-color: rgba(236, 72, 153, 0.28); }
.estm-accent-pink:hover { border-color: rgba(244, 114, 182, 0.5); }

.estm-accent-purple::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.estm-accent-purple { border-color: rgba(139, 92, 246, 0.28); }
.estm-accent-purple:hover { border-color: rgba(167, 139, 250, 0.5); }

.estm-accent-yellow::before { background: linear-gradient(90deg, #ca8a04, #facc15); }
.estm-accent-yellow { border-color: rgba(234, 179, 8, 0.28); }
.estm-accent-yellow:hover { border-color: rgba(250, 204, 21, 0.5); }

.estm-accent-blue::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.estm-accent-blue { border-color: rgba(59, 130, 246, 0.28); }
.estm-accent-blue:hover { border-color: rgba(96, 165, 250, 0.5); }

.estm-accent-slate::before { background: linear-gradient(90deg, #475569, #94a3b8); }
.estm-accent-slate { border-color: rgba(148, 163, 184, 0.28); }
.estm-accent-slate:hover { border-color: rgba(148, 163, 184, 0.45); }

.estm-accent-orange::before { background: linear-gradient(90deg, #ea580c, #fb923c); }
.estm-accent-orange { border-color: rgba(249, 115, 22, 0.32); }
.estm-accent-orange:hover { border-color: rgba(251, 146, 60, 0.55); }

.estm-event-tile-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}

.estm-event-tile-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

.estm-event-tile-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.85rem;
}

.estm-tier-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    transition: border-color 0.2s ease, background 0.2s ease;
}

.estm-tier-item:hover {
    border-color: rgba(255, 107, 53, 0.35);
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.08), rgba(255, 255, 255, 0.03));
}

.estm-tier-value-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.estm-badge-green { background: rgba(34, 197, 94, 0.2); color: #86efac; border-color: rgba(34, 197, 94, 0.35); }
.estm-badge-pink { background: rgba(236, 72, 153, 0.2); color: #f9a8d4; border-color: rgba(236, 72, 153, 0.35); }
.estm-badge-purple { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; border-color: rgba(139, 92, 246, 0.35); }
.estm-badge-yellow { background: rgba(234, 179, 8, 0.2); color: #fde047; border-color: rgba(234, 179, 8, 0.35); }
.estm-badge-blue { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border-color: rgba(59, 130, 246, 0.35); }
.estm-badge-slate { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.35); }
.estm-badge-orange { background: rgba(249, 115, 22, 0.2); color: #fdba74; border-color: rgba(249, 115, 22, 0.35); }
.estm-badge-neutral { background: rgba(255, 255, 255, 0.1); color: #e5e7eb; border-color: rgba(255, 255, 255, 0.15); }

.estm-predefined-tier-card {
    text-align: left;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    font-size: 0.875rem;
    color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    outline: none;
}

.estm-predefined-tier-card:not(:disabled):hover {
    border-color: rgba(255, 107, 53, 0.55);
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.12), rgba(255, 255, 255, 0.04));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.15);
}

.estm-predefined-tier-card:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.estm-predefined-tier-card.estm-predefined-custom {
    border-style: dashed;
    border-color: rgba(249, 115, 22, 0.45);
    color: #fb923c;
    background: rgba(249, 115, 22, 0.06);
}

.estm-predefined-tier-card.estm-predefined-custom:not(:disabled):hover {
    border-color: rgba(251, 146, 60, 0.7);
    color: #fdba74;
}

.estm-var-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.estm-var-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.estm-var-blue { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border-color: rgba(59, 130, 246, 0.4); }
.estm-var-blue:hover { background: rgba(59, 130, 246, 0.32); }

.estm-var-emerald { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.4); }
.estm-var-emerald:hover { background: rgba(16, 185, 129, 0.32); }

.estm-var-amber { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border-color: rgba(245, 158, 11, 0.4); }
.estm-var-amber:hover { background: rgba(245, 158, 11, 0.32); }

.estm-var-violet { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; border-color: rgba(139, 92, 246, 0.4); }
.estm-var-violet:hover { background: rgba(139, 92, 246, 0.32); }

.estm-var-rose { background: rgba(244, 63, 94, 0.2); color: #fda4af; border-color: rgba(244, 63, 94, 0.4); }
.estm-var-rose:hover { background: rgba(244, 63, 94, 0.32); }

.estm-var-cyan { background: rgba(6, 182, 212, 0.2); color: #67e8f9; border-color: rgba(6, 182, 212, 0.4); }
.estm-var-cyan:hover { background: rgba(6, 182, 212, 0.32); }

.estm-message-vars-hint code {
    color: rgba(251, 146, 60, 0.9);
    background: rgba(249, 115, 22, 0.1);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.75rem;
}
