/* Estilos para las 100 funciones y mejoras de Enlace */

:root {
    --primary-accent: #2563eb;
    --primary-bg: #ffffff;
    --primary-text: #1f2937;
    --card-bg: #f9fafb;
    --border-color: #e5e7eb;
}

[data-theme="dark"] {
    --primary-bg: #111827;
    --primary-text: #f9fafb;
    --card-bg: #1f2937;
    --border-color: #374151;
}

[data-theme="amoled"] {
    --primary-bg: #000000;
    --primary-text: #ffffff;
    --card-bg: #0a0a0a;
    --border-color: #222222;
}

[data-theme="neon"] {
    --primary-accent: #00ffcc;
    --primary-bg: #050515;
    --primary-text: #00ffcc;
    --card-bg: #0d0d2b;
    --border-color: #ff00ff;
}

[data-font-size="small"] { font-size: 14px; }
[data-font-size="medium"] { font-size: 16px; }
[data-font-size="large"] { font-size: 18px; }
[data-font-size="xlarge"] { font-size: 20px; }

/* Toast notifications */
#enlace-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.enlace-toast {
    padding: 12px 20px;
    border-radius: 8px;
    background: #333;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.enlace-toast.toast-success { background: #10b981; }
.enlace-toast.toast-error { background: #ef4444; }
.enlace-toast.toast-info { background: #3b82f6; }
.enlace-toast.hide { opacity: 0; transform: translateY(10px); }

/* Banner offline */
#enlace-offline-banner {
    background: #f59e0b;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 14px;
}

/* Lightbox */
#enlace-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#enlace-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

/* Badges de usuario */
.user-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-accent);
    font-size: 12px;
    font-weight: 600;
    margin-left: 4px;
}

/* Encuestas / Polls */
.poll-widget {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    background: var(--card-bg);
}

.poll-option {
    margin: 6px 0;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0,0,0,0.05);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.poll-option:hover {
    background: rgba(37, 99, 235, 0.1);
}

/* ---------- FULLSCREEN YOUTUBE REELS / SHORTS VERTICAL SWIPE EXPERIENCE ---------- */
.modal-reels-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100020;
    background: #000000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reels-vertical-scroll {
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reels-vertical-scroll::-webkit-scrollbar {
    display: none;
}

.reel-item-card {
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    flex-shrink: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.reel-top-bar {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reel-close-btn {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.reel-overlay-info {
    position: absolute;
    bottom: 28px;
    left: 16px;
    right: 80px;
    z-index: 30;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    pointer-events: none;
}

.reel-overlay-actions {
    position: absolute;
    bottom: 28px;
    right: 16px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.reel-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

.reel-action-btn:active {
    transform: scale(0.9);
    background: rgba(124, 58, 237, 0.8);
}

.reel-priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 6px;
}

.reel-priority-badge.new {
    background: rgba(34, 197, 94, 0.85);
    color: #ffffff;
}

.reel-priority-badge.seen {
    background: rgba(239, 68, 68, 0.85);
    color: #ffffff;
}
