/* Paste Confirmation Modal - Estilo dorado y responsivo */

.paste-confirmation-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.paste-confirmation-modal.hidden {
    display: none;
}

.paste-confirmation-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.paste-confirmation-overlay.hidden {
    display: none;
}

.paste-confirmation-content {
    background: var(--theme-modal-bg);
    border: 2px solid var(--theme-accent-primary);
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 64px var(--theme-shadow), 0 0 36px var(--theme-shadow-glow);
    animation: fadeInScale 0.3s ease;
    position: relative;
    transition: all var(--transition-theme);
}

.paste-confirmation-header {
    position: relative;
    margin-bottom: 20px;
    padding-right: 32px;
}

.paste-confirmation-header span {
    color: var(--theme-text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 10px var(--theme-shadow-glow);
    display: block;
    text-align: center;
    transition: color var(--transition-theme), text-shadow var(--transition-theme);
}

.paste-confirmation-close {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    color: var(--theme-text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all var(--transition-theme);
    line-height: 1;
    opacity: 0.6;
}

.paste-confirmation-close:hover {
    background: var(--theme-bg-tertiary);
    color: var(--theme-accent-primary);
    opacity: 1;
}

.paste-confirmation-message {
    color: var(--theme-text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.5;
    transition: color var(--transition-theme);
}

.paste-confirmation-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.paste-confirmation-btn {
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-theme);
    border: 1px solid;
    font-size: 1rem;
    font-family: var(--font-main);
}

.paste-confirmation-replace {
    background: var(--theme-button-hover);
    border-color: var(--theme-accent-primary);
    color: var(--theme-button-text-hover);
}

.paste-confirmation-replace:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--theme-shadow-glow);
}

.paste-confirmation-new-tab {
    background: var(--theme-button-bg);
    border-color: var(--theme-border);
    color: var(--theme-button-text);
}

.paste-confirmation-new-tab:hover {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-accent-primary);
    color: var(--theme-accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--theme-shadow);
}

.paste-confirmation-cancel {
    background: transparent;
    border-color: var(--theme-border);
    color: var(--theme-text-muted);
}

.paste-confirmation-cancel:hover {
    background: var(--theme-input-bg);
    border-color: var(--theme-border);
    color: var(--theme-text-secondary);
}

.manual-pgn-paste-modal .paste-confirmation-content {
    max-width: 720px;
    width: min(92vw, 720px);
    text-align: left;
}

.manual-pgn-paste-modal .paste-confirmation-header span,
.manual-pgn-paste-modal .paste-confirmation-message {
    text-align: center;
}

.manual-pgn-paste-textarea {
    width: 100%;
    min-height: 240px;
    max-height: min(46vh, 420px);
    resize: vertical;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--theme-border);
    background: var(--theme-input-bg);
    color: var(--theme-text-primary);
    font-family: var(--font-mono, monospace);
    font-size: 0.92rem;
    line-height: 1.55;
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-accent-primary) var(--theme-bg-primary);
}

.manual-pgn-paste-textarea:focus {
    border-color: var(--theme-accent-primary);
    box-shadow: 0 0 0 2px var(--theme-shadow-glow);
}

.manual-pgn-paste-textarea::placeholder {
    color: var(--theme-text-muted);
}

.manual-pgn-paste-textarea::-webkit-scrollbar {
    width: 8px;
}

.manual-pgn-paste-textarea::-webkit-scrollbar-track {
    background: var(--theme-bg-primary);
    border-radius: 10px;
}

.manual-pgn-paste-textarea::-webkit-scrollbar-thumb {
    background: var(--theme-accent-primary);
    border-radius: 10px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .paste-confirmation-content {
        padding: 24px;
        max-width: 90%;
    }

    .paste-confirmation-header span {
        font-size: 1.3rem;
    }

    .paste-confirmation-message {
        font-size: 0.9rem;
    }

    .paste-confirmation-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== MÓVILES HORIZONTALES ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .paste-confirmation-content {
        max-width: 300px !important;
        padding: 16px !important;
    }

    .paste-confirmation-header {
        margin-bottom: 14px !important;
        padding-right: 24px !important;
    }

    .paste-confirmation-header span {
        font-size: 1.2rem !important;
    }    .paste-confirmation-close {
        width: 26px !important;
        height: 26px !important;
        font-size: 1.5rem !important;
    }    .paste-confirmation-message {
        font-size: 0.85rem !important;
        margin-bottom: 16px !important;
    }    .paste-confirmation-buttons {
        gap: 8px !important;
        margin-top: 14px !important;
    }    .paste-confirmation-btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
}
