/* ============================================================
   ESTILOS COMUNES — CruzSur
   ============================================================ */

/* === USER AREA (Login con Discord) === */
.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 12px;
    border-radius: 5px;
    border: 1px solid rgba(196, 155, 58, 0.4);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold, #c49b3a);
}

.user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold, #c49b3a);
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #94a3b8;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-family: inherit;
}

.btn-logout:hover {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

/* ============================================================
   FAB (botón flotante +) Y MODAL AÑADIR
   ============================================================ */

.fab-add {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD966, #FF8C42);
    border: none;
    color: #050a14;
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    z-index: 90;
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    line-height: 1;
}

.fab-add.visible { display: flex; }
.fab-add:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 140, 66, 0.8);
}

/* === MODAL AÑADIR === */
.add-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.add-modal {
    background: rgba(15, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 217, 102, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    width: 480px;
    max-width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.25s ease;
}

.add-modal__title {
    font-family: 'MOREKS', 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD966;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 217, 102, 0.15);
}

.add-modal label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    margin-top: 1rem;
}

.add-modal input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #f0f0f0;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
}

.add-modal input:focus { border-color: #FFD966; }

.add-modal__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.add-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.add-modal__btn {
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: filter 0.2s;
}

.add-modal__btn:hover { filter: brightness(1.15); }
.add-modal__btn--cancel {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.add-modal__btn--save {
    background: linear-gradient(135deg, #FFD966, #FF8C42);
    color: #050a14;
}
.add-modal__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================
   FOOTER COMÚN — CruzSur (compacto)
   ============================================================ */
.sc-footer {
    text-align: center;
    padding: 1.5rem 5% 1.2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(196, 155, 58, 0.15);
    background: rgba(5, 10, 20, 0.4);
    color: #94a3b8;
    font-size: 0.72rem;
}

.sc-footer__top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.sc-footer__top img {
    height: 45px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    vertical-align: middle;
}

.sc-footer__top img:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.sc-footer__top a {
    color: #c49b3a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
    margin: 0 0.4rem;
}

.sc-footer__top a:hover {
    color: #FFD966;
    text-shadow: 0 0 10px rgba(255, 217, 102, 0.4);
}

.sc-footer__separator {
    color: rgba(196, 155, 58, 0.4);
    font-size: 0.9rem;
}

.sc-footer__legal {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
}

.sc-footer__legal p {
    margin: 0.2rem 0;
    font-size: 0.68rem;
    color: #5a7ba0;
}

.sc-footer__legal strong {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .sc-footer__top { gap: 0.8rem; }
    .sc-footer__top img { height: 22px; }
    .sc-footer__top a { font-size: 0.65rem; }
    .sc-footer__legal p { font-size: 0.6rem; }
}

/* ============================================================
   ACTIVITY FEED — Últimos movimientos
   ============================================================ */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content;
    gap: 0.7rem;
    margin-top: 1.2rem;
    /* Altura: 2 filas visibles + gap → ~4 items visibles */
    max-height: 120px;
    overflow-y: auto;
    padding-right: 0.4rem;
    scroll-behavior: smooth;
}

/* Scrollbar personalizada dorada */
.activity-grid::-webkit-scrollbar {
    width: 6px;
}
.activity-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}
.activity-grid::-webkit-scrollbar-thumb {
    background: rgba(196, 155, 58, 0.5);
    border-radius: 3px;
}
.activity-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 155, 58, 0.9);
}

/* Firefox */
.activity-grid {
    scrollbar-width: thin;
    scrollbar-color: rgba(196, 155, 58, 0.5) rgba(0, 0, 0, 0.2);
}

/* Responsive: 1 columna en móvil */
@media (max-width: 768px) {
    .activity-grid {
        grid-template-columns: 1fr;
        max-height: 320px;
    }
}

/* Scrollbar personalizada para el activity */
.activity-grid::-webkit-scrollbar {
    width: 6px;
}
.activity-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}
.activity-grid::-webkit-scrollbar-thumb {
    background: rgba(196, 155, 58, 0.5);
    border-radius: 3px;
}
.activity-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 155, 58, 0.8);
}

/* Responsive: 1 columna en móvil */
@media (max-width: 768px) {
    .activity-grid {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
}

.activity-item {
    background: rgba(20, 25, 45, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent-gold, #c49b3a);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.2s, border-color 0.2s;
    min-width: 0;
}

.activity-item:hover {
    transform: translateX(3px);
    border-left-color: var(--accent-gold-bright, #FFD966);
    border-color: rgba(196, 155, 58, 0.4);
}

.activity-item.kind-fleet {
    border-left-color: #ffaa44;
}

.activity-item.kind-inventory {
    border-left-color: #4a9eff;
}

.activity-item__icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
}

.activity-item__body {
    flex: 1;
    min-width: 0;
}

.activity-item__title {
    font-family: 'MOREKS', 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-item__detail {
    font-size: 0.72rem;
    color: var(--accent-gold, #c49b3a);
    font-weight: 600;
    margin-top: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-item__meta {
    font-size: 0.65rem;
    color: #5a7ba0;
    margin-top: 0.2rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.activity-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #5a7ba0;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.activity-loading {
    text-align: center;
    padding: 2rem;
    color: var(--accent-gold-bright, #FFD966);
    font-size: 0.85rem;
    letter-spacing: 3px;
    animation: pulse 1.5s ease-in-out infinite;
}
