/**
 * LA TANDA - Contextual Widgets Styles
 * Version: 1.2.0
 */

.sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.widget-card {
    background: rgba(20, 27, 45, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(10px);
}

.widget-card h4 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-card h4 i {
    color: #00ffff;
    font-size: 0.9rem;
}

/* ============ Promo Carousel ============ */
.promo-carousel {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(0, 255, 255, 0.15);
}

.promo-slides {
    position: relative;
    min-height: 120px;
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 16px;
    cursor: pointer;
}

.promo-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.promo-slide:hover {
    background: rgba(255, 255, 255, 0.03);
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-badge--evento {
    background: rgba(0, 255, 255, 0.15);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.promo-badge--promo {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.promo-badge--nuevo {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.promo-badge--comunidad {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.promo-badge--ia {
    background: rgba(255, 105, 180, 0.15);
    color: #ff69b4;
    border: 1px solid rgba(255, 105, 180, 0.3);
}

.promo-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 136, 255, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #00ffff;
}

.promo-text {
    flex: 1;
    min-width: 0;
}

.promo-text h5 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.promo-text p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.3;
}

.promo-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 16px 14px;
}

.promo-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.promo-dot.active {
    background: #00ffff;
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
    width: 18px;
    border-radius: 4px;
}

/* ============ Balance Widget (legacy, kept for other pages) ============ */
.widget-balance {
    text-align: center;
    padding: 15px 0;
}

.balance-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #00ffff;
}

.balance-currency {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 8px;
}

.widget-actions {
    display: flex;
    gap: 8px;
}

.widget-btn {
    flex: 1;
    padding: 10px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #00ffff;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.widget-btn:hover {
    background: rgba(0, 255, 255, 0.2);
}

/* Trending Widget */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.trending-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.trending-item.hot {
    background: rgba(255, 107, 107, 0.1);
    border-left: 3px solid #ff6b6b;
}

.trend-category {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.trend-topic {
    font-weight: 600;
    color: #fff;
}

.trend-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.trend-rank {
    font-weight: 700;
    color: #00ffff;
    margin-right: 8px;
}

/* Suggestions Widget */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff, #0088ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #000;
}

.suggestion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.suggestion-handle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.follow-btn {
    padding: 6px 14px;
    background: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.follow-btn:hover {
    background: #00ffff;
}

/* Search Widget */
.widget-search {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.widget-search:focus {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
}

.widget-search::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.filter-options input[type="checkbox"] {
    accent-color: #00ffff;
}

/* Stats */
.job-stats, .creator-stats, .mia-stats, .mining-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item, .metric {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child, .metric:last-child {
    border-bottom: none;
}

.stat-num, .metric-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #00ffff;
}

/* Leaderboard */
.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leader-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.leader-item .rank {
    font-size: 1.2rem;
}

.leader-item .name {
    flex: 1;
    font-weight: 500;
}

.leader-item .score {
    font-size: 0.85rem;
    color: #00ffff;
}

/* Hot Numbers (Lottery) */
.hot-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hot-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
}

/* Next Draw */
.next-draw {
    text-align: center;
    padding: 15px 0;
}

.draw-time {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #ffd700;
    display: block;
}

.draw-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Categories (Marketplace) */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-item {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.cat-item:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
}

/* Collections */
.collections-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.collection-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.collection-item .count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Achievements */
.achievements {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.achievement {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #ffd700;
}

.achievement.locked {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.3);
}

/* Suggested Questions (MIA) */
.suggested-questions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-btn {
    padding: 10px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    color: #a855f7;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: rgba(138, 43, 226, 0.2);
}

/* Empty States */
.empty-state, .widget-loading {
    text-align: center;
    padding: 15px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Tips */
.tips-content {
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Company List */
.company-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.company-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.company-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.company-item i {
    color: #00ffff;
}
