/* ============================================
   A2TINTAS TATTOO - AUTH STYLES
   ============================================
   Estilos para modal de autenticación y likes
   Estilo: Angular, consistente con el resto de la web
   Fuente: museo-500
*/

/* ============================================
   AUTH MODAL
   ============================================ */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 21000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.show {
    opacity: 1;
    visibility: visible;
}

.auth-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.auth-modal-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
}

.auth-modal-card {
    background: #0a0a0a;
    border: 1px solid rgba(139, 0, 0, 0.4);
    /* Bordes angulares, NO redondeados */
    border-radius: 2px;
    padding: 2rem;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(139, 0, 0, 0.1);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
    /* Fuente museo-500 */
    font-family: 'Museo', 'museo-500', sans-serif;
}

.auth-modal.show .auth-modal-card {
    transform: scale(1) translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Angular */
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.auth-modal-close svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.7);
}

/* Header */
.auth-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-modal-logo {
    width: 50px;
    height: auto;
    opacity: 0.85;
}

/* Tabs - Estilo angular */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Angular */
    border-radius: 2px;
    overflow: hidden;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Museo', 'museo-500', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.03);
}

.auth-tab.active {
    background: var(--accent-primary, #8b0000);
    color: #fff;
}

/* Panels - IMPORTANTE: Solo mostrar el activo */
.auth-panel {
    display: none !important;
}

.auth-panel.active {
    display: flex !important;
    animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
.auth-form {
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-family: 'Museo', 'museo-500', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Angular */
    border-radius: 2px;
    color: #fff;
    font-family: 'Museo', 'museo-500', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary, #8b0000);
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.2);
}

/* Checkbox Group */
.checkbox-group {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.form-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.form-checkbox:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.form-checkbox:checked {
    background: var(--accent-primary, #8b0000);
    border-color: var(--accent-primary, #8b0000);
}

.form-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-group .form-label {
    text-transform: none !important;
    margin-bottom: 0 !important;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Auth Button - Angular */
.auth-btn {
    width: 100%;
    padding: 0.95rem;
    margin-top: 0.75rem;
    background: var(--accent-primary, #8b0000);
    border: none;
    /* Angular */
    border-radius: 2px;
    color: #fff;
    font-family: 'Museo', 'museo-500', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    background: #a00;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn.loading .btn-text {
    opacity: 0;
}

.auth-btn .btn-loader {
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
}

.auth-btn.loading .btn-loader {
    opacity: 1;
    animation: authSpin 0.8s linear infinite;
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Messages */
.auth-message {
    padding: 0.7rem 1rem;
    border-radius: 2px;
    font-family: 'Museo', 'museo-500', sans-serif;
    font-size: 0.85rem;
    display: none;
    margin-bottom: 0.5rem;
}

.auth-message.show {
    display: block;
    animation: authFadeIn 0.3s ease;
}

.auth-message.error {
    background: rgba(180, 0, 0, 0.15);
    border: 1px solid rgba(180, 0, 0, 0.35);
    color: #ff5555;
}

.auth-message.success {
    background: rgba(0, 140, 0, 0.15);
    border: 1px solid rgba(0, 140, 0, 0.35);
    color: #55ff55;
}

/* ============================================
   NAVBAR AUTH ELEMENTS
   ============================================ 
   NOTA: Los estilos de .user-menu, .user-btn, .user-dropdown
   están en navbar.css para evitar duplicación y conflictos.
   Solo mantenemos aquí lo que es específico de auth.
*/

.nav-item--auth {
    margin-left: auto;
}

/* Login Button - Angular */
.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--accent-primary, #8b0000);
    border: none;
    /* Angular, NO redondeado */
    border-radius: 2px;
    color: #fff;
    font-family: 'Museo', 'museo-500', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #a00;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.35);
}

.login-btn svg {
    width: 16px;
    height: 16px;
}

/* Dropdown Items (hovers específicos para auth) */
.dropdown-item--logout:hover {
    background: rgba(180, 0, 0, 0.15);
    color: #ff5555;
}

.dropdown-item--profile:hover {
    background: rgba(139, 0, 0, 0.15);
    color: var(--accent-tertiary-sat, #8b0000);
}

.dropdown-item svg {
    width: 15px;
    height: 15px;
    opacity: 0.7;
}

/* ============================================
   LIKE BUTTON STYLES - Circular Premium Design
   ============================================ */

.like-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Tamaño grande y circular */
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(139, 0, 0, 0.5);
    /* Circular */
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    overflow: hidden;
}

.like-btn:hover {
    background: rgba(0, 0, 0, 1);
    border-color: var(--accent-tertiary-sat, #8b0000);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.4);
}

.like-btn:active {
    transform: scale(0.95);
}

/* Heart Icon - Delineado en burdeos */
.heart-icon {
    width: 24px;
    height: 24px;
    fill: transparent;
    stroke: var(--accent-tertiary-sat, #8b0000);
    stroke-width: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.like-btn:hover .heart-icon {
    stroke: #c00;
    transform: scale(1.1);
}

/* Liked State - Relleno con animación */
.like-btn.liked .heart-icon {
    fill: var(--accent-tertiary-sat, #8b0000);
    stroke: var(--accent-tertiary-sat, #8b0000);
    animation: heartFill 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animación de relleno del corazón */
@keyframes heartFill {
    0% {
        transform: scale(1);
        fill: transparent;
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(0.85);
        fill: var(--accent-tertiary-sat, #8b0000);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
        fill: var(--accent-tertiary-sat, #8b0000);
    }
}

/* Animación adicional de pulso cuando está liked */
.like-btn.liked {
    border-color: var(--accent-tertiary-sat, #8b0000);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.3);
}

.like-btn.liked:hover {
    box-shadow: 0 4px 25px rgba(139, 0, 0, 0.5);
}

/* Counter - Oculto para diseño circular limpio */
.like-count {
    display: none;
}

/* Animation burst - Efecto de explosión al dar like */
.like-btn.animating::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-tertiary-sat, #8b0000) 0%, transparent 70%);
    opacity: 0;
    animation: likeBurst 0.6s ease-out;
    pointer-events: none;
    border-radius: 50%;
}

@keyframes likeBurst {
    0% {
        opacity: 0.6;
        transform: scale(0.5);
    }

    100% {
        opacity: 0;
        transform: scale(2.5);
    }
}

/* Ensure gallery items are positioned */
.gallery-item,
.masonry-item {
    position: relative;
}

/* ============================================
   LOGIN PROMPT MODAL - Angular
   ============================================ */

.login-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 21001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-prompt-modal.show {
    opacity: 1;
    visibility: visible;
}

.login-prompt-content {
    background: #0a0a0a;
    border: 1px solid rgba(139, 0, 0, 0.4);
    /* Angular */
    border-radius: 2px;
    padding: 2rem;
    max-width: 320px;
    text-align: center;
    font-family: 'Museo', 'museo-500', sans-serif;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.login-prompt-modal.show .login-prompt-content {
    transform: scale(1);
}

.login-prompt-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.login-prompt-title {
    font-family: var(--font-heading, 'OldLondon', serif);
    font-size: 1.3rem;
    color: var(--accent-primary, #8b0000);
    margin-bottom: 0.4rem;
}

.login-prompt-text {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.login-prompt-btns {
    display: flex;
    gap: 0.6rem;
}

.login-prompt-btns button {
    flex: 1;
    padding: 0.8rem 0.9rem;
    /* Angular */
    border-radius: 2px;
    font-family: 'Museo', 'museo-500', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-prompt-btns .btn-primary {
    background: var(--accent-primary, #8b0000);
    color: #fff;
    border: none;
}

.login-prompt-btns .btn-primary:hover {
    background: #a00;
    transform: translateY(-1px);
}

.login-prompt-btns .btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.login-prompt-btns .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .auth-modal-container {
        max-width: 100%;
        margin: 0.5rem;
    }

    .auth-modal-card {
        padding: 1.5rem;
    }

    .user-name {
        display: block;
        /* Show username on mobile */
        max-width: 80px;
        /* Limit width to fit */
        font-size: 0.8rem;
    }

    .user-btn {
        padding: 6px;
    }

    .login-btn span {
        display: none;
    }

    .login-btn {
        padding: 10px;
    }

    .nav-item--auth {
        /* Removed absolute positioning to fixing overlap in mobile menu */
        position: static;
        transform: none;
        margin-left: 0;
    }
}